X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frrd_getopt.h;h=89a5da6dbefb452bd318083c463a2ef0e4269869;hb=be3cca08c4031f46d4e2b872ab0eb825c5b69b4e;hp=91906efe2dc7b7f9c635bb753c3c0d67b5947df1;hpb=17d11091c4df387ec01f0fce611cca5e3117a5d7;p=pkg-rrdtool.git diff --git a/src/rrd_getopt.h b/src/rrd_getopt.h index 91906ef..89a5da6 100644 --- a/src/rrd_getopt.h +++ b/src/rrd_getopt.h @@ -132,6 +132,20 @@ extern "C" { int *longind, int long_only); #else /* not __STDC__ */ + +#ifdef WIN32 + int getopt_long(int argc, + char **argv, + const char *options, + const struct option *long_options, + int *opt_index); + int _getopt_internal(int argc, + char **argv, + const char *shortopts, + const struct option *longopts, + int *longind, + int long_only); +#else // WIN32 extern int getopt( ); extern int getopt_long( @@ -141,6 +155,8 @@ extern "C" { extern int _getopt_internal( ); +#endif // WIN32 + #endif /* __STDC__ */ #ifdef __cplusplus