]> granicus.if.org Git - curl/commitdiff
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
authorGisle Vanem <gvanem@broadpark.no>
Mon, 8 Dec 2008 16:11:16 +0000 (16:11 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Mon, 8 Dec 2008 16:11:16 +0000 (16:11 +0000)
(to get correct linkage on Windows).

ares/ares_getopt.h

index 3dafaf38f4c2a124a3a8309a47d7f0327ba483c5..e0eb283232b4c251fc8f5853d196bd671ba8a2b5 100644 (file)
 
 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;