X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_getopt1.c;h=ea9ed54568bc731b5e7da29efd5ea89691205e9f;hp=32e54915debc31989234ca87b960230f569f4f3d;hb=ed3ee7c81e23fcd41693bc372470945576ae54d1;hpb=d372ef83ee1b95f5263f80258b1cb750249ea89f diff --git a/src/rrd_getopt1.c b/src/rrd_getopt1.c index 32e5491..ea9ed54 100644 --- a/src/rrd_getopt1.c +++ b/src/rrd_getopt1.c @@ -28,9 +28,11 @@ #endif #endif +#ifndef WIN32 #ifdef HAVE_CONFIG_H #include "../rrd_config.h" #endif +#endif #include "rrd_getopt.h" @@ -66,7 +68,11 @@ #endif int getopt_long(int argc, +#ifdef WIN32 + char** argv, +#else // WIN32 char* const* argv, +#endif //WIN32 const char* options, const struct option* long_options, int* opt_index) @@ -80,7 +86,11 @@ int getopt_long(int argc, instead. */ int getopt_long_only(int argc, +#ifdef WIN32 + char** argv, +#else // WIN32 char* const* argv, +#endif //WIN32 const char* options, const struct option* long_options, int* opt_index)