fix MSVC2008 compilation ... it does not understand char *const *argv iin rrd_getopt
[rrdtool.git] / src / rrd_getopt1.c
index 32e5491..15bd2a9 100644 (file)
 #endif
 
 int getopt_long(int argc,
 #endif
 
 int getopt_long(int argc,
+#ifdef WIN32
+                char** argv,
+#else // WIN32
                 char* const* argv,
                 char* const* argv,
+#endif //WIN32
                 const char* options,
                 const struct option* long_options,
                 int* opt_index)
                 const char* options,
                 const struct option* long_options,
                 int* opt_index)
@@ -80,7 +84,11 @@ int getopt_long(int argc,
    instead.  */
 
 int getopt_long_only(int argc,
    instead.  */
 
 int getopt_long_only(int argc,
+#ifdef WIN32
+                     char** argv,
+#else // WIN32
                      char* const* argv,
                      char* const* argv,
+#endif //WIN32
                      const char* options,
                      const struct option* long_options,
                      int* opt_index)
                      const char* options,
                      const struct option* long_options,
                      int* opt_index)