mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 11:00:41 +08:00
2008-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/getopt.h (no_argument): Added for glibc compatibility. (required_argument, optional_argument): Ditto.
This commit is contained in:
parent
193b9a616d
commit
be62101c60
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user