Skip to content
Snippets Groups Projects
Commit c7747446 authored by Niels Möller's avatar Niels Möller
Browse files

* misc/getopt.h: Deleted __ from argument names in prototypes,

i.e. "argc", not "__argc". Needed for mingw compilation.

Rev: misc/getopt.h:1.2
parent 5d5f0a2c
No related branches found
No related tags found
No related merge requests found
...@@ -141,23 +141,23 @@ struct option ...@@ -141,23 +141,23 @@ struct option
/* Many other libraries have conflicting prototypes for getopt, with /* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */ errors, only prototype getopt for the GNU C library. */
extern int getopt (int __argc, char *const *__argv, const char *__shortopts); extern int getopt (int argc, char *const *argv, const char *shortopts);
# else /* not __GNU_LIBRARY__ */ # else /* not __GNU_LIBRARY__ */
extern int getopt (); extern int getopt ();
# endif /* __GNU_LIBRARY__ */ # endif /* __GNU_LIBRARY__ */
# ifndef __need_getopt # ifndef __need_getopt
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, extern int getopt_long (int argc, char *const *argv, const char *shortopts,
const struct option *__longopts, int *__longind); const struct option *longopts, int *longind);
extern int getopt_long_only (int __argc, char *const *__argv, extern int getopt_long_only (int argc, char *const *argv,
const char *__shortopts, const char *shortopts,
const struct option *__longopts, int *__longind); const struct option *longopts, int *longind);
/* Internal only. Users should not call this directly. */ /* Internal only. Users should not call this directly. */
extern int _getopt_internal (int __argc, char *const *__argv, extern int _getopt_internal (int argc, char *const *argv,
const char *__shortopts, const char *shortopts,
const struct option *__longopts, int *__longind, const struct option *longopts, int *longind,
int __long_only); int long_only);
# endif # endif
#else /* not __STDC__ */ #else /* not __STDC__ */
extern int getopt (); extern int getopt ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment