examples/DS401_Slave_Gui/getopt.h
changeset 641 404a51700f40
parent 329 7717252e3ed9
--- a/examples/DS401_Slave_Gui/getopt.h	Fri Feb 19 08:19:23 2010 +0100
+++ b/examples/DS401_Slave_Gui/getopt.h	Tue Feb 23 08:09:57 2010 +0100
@@ -147,13 +147,15 @@
    `getopt'.  */
 
 #if (defined __STDC__ && __STDC__) || defined __cplusplus
-# if (defined __GNU_LIBRARY__ || __CYGWIN__ || __MINGW32__)
+//# if (defined __GNU_LIBRARY__) || defined(__CYGWIN__) || defined(__MINGW32__)
+# ifdef __GNU_LIBRARY__
 /* Many other libraries have conflicting prototypes for getopt, with
    differences in the consts, in stdlib.h.  To avoid compilation
    errors, only prototype getopt for the GNU C library.  */
 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
 # else /* not __GNU_LIBRARY__ */
-extern int getopt ();
+//extern int getopt ();
+extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
 # endif /* __GNU_LIBRARY__ */
 
 # ifndef __need_getopt