diff --git a/src/rrd_getopt.c b/src/rrd_getopt.c
index f973471c0f016e3c11da534f6a22969c300260d1..46f7313473caf6bc8b57f952e3b4e05e7c6e3ed9 100644 (file)
--- a/src/rrd_getopt.c
+++ b/src/rrd_getopt.c
#endif
#endif
-
+#ifndef WIN32
#ifdef HAVE_CONFIG_H
#include "../rrd_config.h"
#endif
+#endif
#include "rrd_i18n.h"
to getopt is that one passed to the process. */
static void store_args(
int argc,
- char *const *argv) __attribute__ ((unused));
+ char *const *argv);
+
static void store_args(
int argc,
char *const *argv)
const char *);
#endif
static const char* _getopt_initialize(int argc,
- char** argv,
+ char* const* argv,
const char* optstring)
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0
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,
}
}
-int getopt(
- int argc,
- char** argv,
- const char* optstring)
-{
- return _getopt_internal(argc, argv, optstring,
- (const struct option *) 0, (int *) 0, 0);
-}
-
#endif /* Not ELIDE_CODE. */
\f
#ifdef TEST