mirror of
https://github.com/curl/curl.git
synced 2026-07-02 22:47:16 +03: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue