comparison lib-src/getopt.h @ 5093:33bc58a32dc2

merge
author Ben Wing <ben@xemacs.org>
date Wed, 03 Mar 2010 05:19:49 -0600
parents ed624ab64583
children 061f4f90f874
comparison
equal deleted inserted replaced
5090:0ca81354c4c7 5093:33bc58a32dc2
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) || defined (CYGWIN) 101 #if defined (__GNU_LIBRARY__) || defined (__cplusplus) || defined (HAVE_CONFIG_H)
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++ */