diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2008-12-08 16:11:16 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2008-12-08 16:11:16 +0000 |
commit | 5078ae002414080b2c2b8425d7dcee9bf9e29f01 (patch) | |
tree | 917e15dd3c7ae989727bb053c92dcd3cfa7c32e5 /ares_getopt.h | |
parent | f8324d41e3b044e7de289a4730da7ec55f4101cc (diff) | |
download | c-ares-5078ae002414080b2c2b8425d7dcee9bf9e29f01.tar.gz c-ares-5078ae002414080b2c2b8425d7dcee9bf9e29f01.tar.bz2 c-ares-5078ae002414080b2c2b8425d7dcee9bf9e29f01.zip |
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
(to get correct linkage on Windows).
Diffstat (limited to 'ares_getopt.h')
-rw-r--r-- | ares_getopt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ares_getopt.h b/ares_getopt.h index 3dafaf3..e0eb283 100644 --- a/ares_getopt.h +++ b/ares_getopt.h @@ -33,6 +33,12 @@ int ares_getopt(int nargc, char * const nargv[], const char *ostr); +#if defined(WATT32) +#undef optarg +#undef optind +#undef opterr +#endif + extern char *optarg; extern int optind; extern int opterr; |