1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Undefine 'optarg', 'optind' and 'opterr' when using Watt-32

(to get correct linkage on Windows).
This commit is contained in:
Gisle Vanem 2008-12-08 16:11:16 +00:00
parent 553b4cfd0b
commit 66d38261f7

View File

@ -33,6 +33,12 @@
int ares_getopt(int nargc, char * const nargv[], const char *ostr); 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 char *optarg;
extern int optind; extern int optind;
extern int opterr; extern int opterr;