X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=getopt%2Fgetopt.h;h=c5f98619b9a033d5fc4decebd39840598d0c064d;hb=d16eb37cbc73f67fc29a60645e0b1ac7fe32767e;hp=b0147e9d2ac314401941304659c3c19575f025df;hpb=13838bda88b63a2535b5baaf7197006767de4b8e;p=ctsim.git diff --git a/getopt/getopt.h b/getopt/getopt.h index b0147e9..c5f9861 100644 --- a/getopt/getopt.h +++ b/getopt/getopt.h @@ -82,7 +82,7 @@ extern int optopt; struct option { -# if defined __STDC__ && __STDC__ +# if defined __STDC__ const char *name; # else char *name; @@ -126,7 +126,7 @@ struct option arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ -#if defined __STDC__ && __STDC__ +#if defined __STDC__ # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation @@ -137,8 +137,8 @@ extern int getopt (); # endif /* __GNU_LIBRARY__ */ # ifndef __need_getopt -extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, - const struct option *__longopts, int *__longind); +extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); extern int getopt_long_only (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind); @@ -152,10 +152,15 @@ extern int _getopt_internal (int __argc, char *const *__argv, #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt -extern int getopt_long (); -extern int getopt_long_only (); - -extern int _getopt_internal (); +extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); +extern int getopt_long_only (int __argc, char *const *__argv, + const char *__shortopts, + const struct option *__longopts, int *__longind); +extern int _getopt_internal (int __argc, char *const *__argv, + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only); # endif #endif /* __STDC__ */