Commit 66d38261 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

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

(to get correct linkage on Windows).
parent 553b4cfd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;