Code

Imported upstream version 1.3.5.
[pkg-rrdtool.git] / src / rrd_getopt.h
index 91906efe2dc7b7f9c635bb753c3c0d67b5947df1..89a5da6dbefb452bd318083c463a2ef0e4269869 100644 (file)
@@ -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