diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2014-12-14 12:53:35 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2014-12-14 12:53:35 -0500 |
commit | 1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87 (patch) | |
tree | e6eff5ba1ffaa2250c59ce02464d783b08508f4c /getopt.h | |
parent | f9c7ec30542ef2550761f49cd25503e0775ef271 (diff) | |
parent | 0d52289482d468c8566976d77c0c6a6a4e602add (diff) | |
download | egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.gz egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.bz2 egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.zip |
Merge branch 'master' into select
Diffstat (limited to 'getopt.h')
-rw-r--r-- | getopt.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -48,6 +48,21 @@ extern "C" { #endif +#ifdef __KLIBC__ +/* OS/2 kLIBC has already getopt(). So to avoid name clash, rename + them here. */ + +# define optarg gawk_optarg +# define optind gawk_optind +# define opterr gawk_opterr +# define optopt gawk_optopt + +# define getopt gawk_getopt +# define getopt_long gawk_getopt_long +# define getopt_long_only gawk_getopt_long_only +#endif + + /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. |