X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_getopt.c;h=46f7313473caf6bc8b57f952e3b4e05e7c6e3ed9;hb=3fe75e499b529b4e2e20d3e8c7e30b4b44c86c90;hp=0556c86a82602e2a3ea5c413d4e17cbd56a8a181;hpb=a6a0ea0e154e87e0210d7ee44cf2265e6fc81ac3;p=rrdtool-all.git diff --git a/program/src/rrd_getopt.c b/program/src/rrd_getopt.c index 0556c86a..46f73134 100644 --- a/program/src/rrd_getopt.c +++ b/program/src/rrd_getopt.c @@ -39,10 +39,11 @@ #endif #endif - +#ifndef WIN32 #ifdef HAVE_CONFIG_H #include "../rrd_config.h" #endif +#endif #include "rrd_i18n.h" @@ -465,7 +466,11 @@ static const char* _getopt_initialize(int argc, long-named options. */ int _getopt_internal(int argc, +#ifdef WIN32 + char** argv, +#else // WIN32 char* const* argv, +#endif //WIN32 const char *optstring, const struct option *longopts, int* longind,