diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-03-03 19:47:59 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-03-03 19:47:59 +0000 |
commit | be62101c605591b8cd8764d283d274d0defe749b (patch) | |
tree | 23ba9b5552585ef700bf9a0d881e7456ab08e12e | |
parent | 193b9a616d422fdc5f2aa4fb027a49e94ebd934c (diff) | |
download | cygnal-be62101c605591b8cd8764d283d274d0defe749b.tar.gz cygnal-be62101c605591b8cd8764d283d274d0defe749b.tar.bz2 cygnal-be62101c605591b8cd8764d283d274d0defe749b.zip |
2008-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/getopt.h (no_argument): Added for glibc compatibility.
(required_argument, optional_argument): Ditto.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/getopt.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a5003ebbd..a1ed163de 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-03-02 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/getopt.h (no_argument): Added for glibc compatibility. + (required_argument, optional_argument): Ditto. + 2008-02-29 Gregory Pietsch <gpietsch@comcast.net> * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept diff --git a/newlib/libc/include/getopt.h b/newlib/libc/include/getopt.h index 7861ec300..f91875714 100644 --- a/newlib/libc/include/getopt.h +++ b/newlib/libc/include/getopt.h @@ -94,6 +94,12 @@ gpietsch@comcast.net #define NO_ARG 0 #define REQUIRED_ARG 1 #define OPTIONAL_ARG 2 + +/* For glibc compatibility. */ +#define no_argument NO_ARG +#define required_argument REQUIRED_ARG +#define optional_argument OPTIONAL_ARG + /* The GETOPT_DATA_INITIALIZER macro is used to initialize a statically- allocated variable of type struct getopt_data. */ #define GETOPT_DATA_INITIALIZER {0,0,0,0,0} |