mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
(to get correct linkage on Windows).
This commit is contained in:
parent
553b4cfd0b
commit
66d38261f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user