comparison src/getopt.h @ 12370:0d4484b7a46a

[gaim-migrate @ 14674] Changing the prototypes here broke FreeBSD. Looking at what was changed, I think reverting the changes for this file is best. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 06 Dec 2005 07:59:07 +0000
parents fc464a0abccc
children
comparison
equal deleted inserted replaced
12369:a1c4d7daabe7 12370:0d4484b7a46a
106 /* Many other libraries have conflicting prototypes for getopt, with 106 /* Many other libraries have conflicting prototypes for getopt, with
107 differences in the consts, in stdlib.h. To avoid compilation 107 differences in the consts, in stdlib.h. To avoid compilation
108 errors, only prototype getopt for the GNU C library. */ 108 errors, only prototype getopt for the GNU C library. */
109 extern int getopt (int argc, char *const *argv, const char *shortopts); 109 extern int getopt (int argc, char *const *argv, const char *shortopts);
110 #else /* not __GNU_LIBRARY__ */ 110 #else /* not __GNU_LIBRARY__ */
111 extern int getopt (void); 111 extern int getopt ();
112 #endif /* not __GNU_LIBRARY__ */ 112 #endif /* not __GNU_LIBRARY__ */
113 extern int getopt_long (int argc, char *const *argv, const char *shortopts, 113 extern int getopt_long (int argc, char *const *argv, const char *shortopts,
114 const struct option *longopts, int *longind); 114 const struct option *longopts, int *longind);
115 extern int getopt_long_only (int argc, char *const *argv, 115 extern int getopt_long_only (int argc, char *const *argv,
116 const char *shortopts, 116 const char *shortopts,
120 extern int _getopt_internal (int argc, char *const *argv, 120 extern int _getopt_internal (int argc, char *const *argv,
121 const char *shortopts, 121 const char *shortopts,
122 const struct option *longopts, int *longind, 122 const struct option *longopts, int *longind,
123 int long_only); 123 int long_only);
124 #else /* not __STDC__ */ 124 #else /* not __STDC__ */
125 extern int getopt (void); 125 extern int getopt ();
126 extern int getopt_long (void); 126 extern int getopt_long ();
127 extern int getopt_long_only (void); 127 extern int getopt_long_only ();
128 128
129 extern int _getopt_internal (void); 129 extern int _getopt_internal ();
130 #endif /* not __STDC__ */ 130 #endif /* not __STDC__ */
131 131
132 #ifdef __cplusplus 132 #ifdef __cplusplus
133 } 133 }
134 #endif 134 #endif