examples/DS401_Slave_Gui/getopt.h
changeset 641 404a51700f40
parent 329 7717252e3ed9
equal deleted inserted replaced
640:e9a4e4c308bb 641:404a51700f40
   145    If OPTS begins with `--', then non-option arguments are treated as
   145    If OPTS begins with `--', then non-option arguments are treated as
   146    arguments to the option '\0'.  This behavior is specific to the GNU
   146    arguments to the option '\0'.  This behavior is specific to the GNU
   147    `getopt'.  */
   147    `getopt'.  */
   148 
   148 
   149 #if (defined __STDC__ && __STDC__) || defined __cplusplus
   149 #if (defined __STDC__ && __STDC__) || defined __cplusplus
   150 # if (defined __GNU_LIBRARY__ || __CYGWIN__ || __MINGW32__)
   150 //# if (defined __GNU_LIBRARY__) || defined(__CYGWIN__) || defined(__MINGW32__)
       
   151 # ifdef __GNU_LIBRARY__
   151 /* Many other libraries have conflicting prototypes for getopt, with
   152 /* Many other libraries have conflicting prototypes for getopt, with
   152    differences in the consts, in stdlib.h.  To avoid compilation
   153    differences in the consts, in stdlib.h.  To avoid compilation
   153    errors, only prototype getopt for the GNU C library.  */
   154    errors, only prototype getopt for the GNU C library.  */
   154 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
   155 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
   155 # else /* not __GNU_LIBRARY__ */
   156 # else /* not __GNU_LIBRARY__ */
   156 extern int getopt ();
   157 //extern int getopt ();
       
   158 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
   157 # endif /* __GNU_LIBRARY__ */
   159 # endif /* __GNU_LIBRARY__ */
   158 
   160 
   159 # ifndef __need_getopt
   161 # ifndef __need_getopt
   160 extern int getopt_long (int ___argc, char *const *___argv,
   162 extern int getopt_long (int ___argc, char *const *___argv,
   161                         const char *__shortopts,
   163                         const char *__shortopts,