diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-15 15:28:26 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-15 15:28:26 +0000 |
commit | 8085c7a4500467df01d82b381e6830b2caf2dbbe (patch) | |
tree | f5a0f07505ba317ec9d197360ad5ca7eee0599b4 /ares/acountry.c | |
parent | 842de91168f86858415069192782212526cc9ebe (diff) |
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
Diffstat (limited to 'ares/acountry.c')
-rw-r--r-- | ares/acountry.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ares/acountry.c b/ares/acountry.c index 169f81425..f74577f91 100644 --- a/ares/acountry.c +++ b/ares/acountry.c @@ -60,6 +60,21 @@ #include "inet_net_pton.h" #include "inet_ntop.h" +#ifndef HAVE_STRDUP +# include "ares_strdup.h" +# define strdup(ptr) ares_strdup(ptr) +#endif + +#ifndef HAVE_STRCASECMP +# include "ares_strcasecmp.h" +# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) +#endif + +#ifndef HAVE_STRNCASECMP +# include "ares_strcasecmp.h" +# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) +#endif + #ifndef INADDR_NONE #define INADDR_NONE 0xffffffff #endif |