From: oetiker Date: Tue, 31 Aug 2010 07:31:43 +0000 (+0000) Subject: fix MSVC2008 compilation ... it does not understand char *const *argv iin rrd_getopt X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd3f9f3c411aa070346e6b08dd65ca3a70c53537;p=rrdtool-all.git fix MSVC2008 compilation ... it does not understand char *const *argv iin rrd_getopt -- jkane mail.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2124 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_getopt.c b/program/src/rrd_getopt.c index 0556c86a..5f938f39 100644 --- a/program/src/rrd_getopt.c +++ b/program/src/rrd_getopt.c @@ -465,7 +465,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, diff --git a/program/src/rrd_getopt1.c b/program/src/rrd_getopt1.c index 32e54915..15bd2a97 100644 --- a/program/src/rrd_getopt1.c +++ b/program/src/rrd_getopt1.c @@ -66,7 +66,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 +84,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)