mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Fix name space pollution.
This commit is contained in:
parent
5ec8a3ae06
commit
738e547815
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
int opterr = 1, /* if error message should be printed */
|
int opterr = 1, /* if error message should be printed */
|
||||||
optind = 1; /* index into parent argv vector */
|
optind = 1; /* index into parent argv vector */
|
||||||
static int optopt; /* character checked for validity */
|
int optopt = 0; /* character checked for validity */
|
||||||
static int optreset; /* reset getopt */
|
static int optreset; /* reset getopt */
|
||||||
char *optarg; /* argument associated with option */
|
char *optarg; /* argument associated with option */
|
||||||
|
|
||||||
|
@ -33,15 +33,15 @@
|
|||||||
|
|
||||||
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
|
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
|
||||||
|
|
||||||
#if defined(WATT32)
|
#define optarg ares_optarg
|
||||||
#undef optarg
|
#define optind ares_optind
|
||||||
#undef optind
|
#define opterr ares_opterr
|
||||||
#undef opterr
|
#define optopt ares_optopt
|
||||||
#endif
|
#define optreset ares_optreset
|
||||||
|
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind;
|
extern int optind;
|
||||||
extern int opterr;
|
extern int opterr;
|
||||||
|
extern int optopt;
|
||||||
|
|
||||||
#endif /* ARES_GETOPT_H */
|
#endif /* ARES_GETOPT_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user