mirror of git://git.musl-libc.org/musl
getopt.h is a GNU-getopt-specific header. always expose GNU functions.
This commit is contained in:
parent
5788d97221
commit
0438e9fd63
|
@ -9,7 +9,6 @@ int getopt(int, char * const [], const char *);
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind, opterr, optopt;
|
extern int optind, opterr, optopt;
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
|
||||||
struct option
|
struct option
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
|
@ -24,7 +23,6 @@ int getopt_long_only(int, char *const *, const char *, const struct option *, in
|
||||||
#define no_argument 0
|
#define no_argument 0
|
||||||
#define required_argument 1
|
#define required_argument 1
|
||||||
#define optional_argument 2
|
#define optional_argument 2
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue