mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 01:49:56 +00:00
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
(to get correct linkage on Windows).
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user