comparison lib-src/getopt.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children ed624ab64583
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
96 96
97 #define no_argument 0 97 #define no_argument 0
98 #define required_argument 1 98 #define required_argument 1
99 #define optional_argument 2 99 #define optional_argument 2
100 100
101 #if defined (__GNU_LIBRARY__) || defined (__cplusplus) 101 #if defined (__GNU_LIBRARY__) || defined (__cplusplus) || defined (CYGWIN)
102 /* Many other libraries have conflicting prototypes for getopt, with 102 /* Many other libraries have conflicting prototypes for getopt, with
103 differences in the consts, in stdlib.h. To avoid compilation 103 differences in the consts, in stdlib.h. To avoid compilation
104 errors, only prototype getopt for the GNU C library. */ 104 errors, only prototype getopt for the GNU C library. */
105 extern int getopt (int argc, char *const *argv, const char *shortopts); 105 extern int getopt (int argc, char *const *argv, const char *shortopts);
106 #else /* not __GNU_LIBRARY__ || C++ */ 106 #else /* not __GNU_LIBRARY__ || C++ */