X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_getopt1.c;h=ea9ed54568bc731b5e7da29efd5ea89691205e9f;hb=d95ec14cc12d5793cd1a3634a9d9b805de10af3e;hp=1ace77e24c9157e5254a485d0866b417bc5411e8;hpb=aff0a2728543eee1ac21f3fa02f171caae8d9362;p=rrdtool.git diff --git a/src/rrd_getopt1.c b/src/rrd_getopt1.c index 1ace77e..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)