summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-15 15:28:26 +0000
committerYang Tse <yangsita@gmail.com>2008-09-15 15:28:26 +0000
commit746f3e2942c36511fda867cac0573d2907290db0 (patch)
treefcd8e397fa6f57dece395bff001bfe7e584cb5ea /ares_private.h
parentb6e5b752fe22725adda416e551665e45fda1a5e1 (diff)
downloadc-ares-746f3e2942c36511fda867cac0573d2907290db0.tar.gz
c-ares-746f3e2942c36511fda867cac0573d2907290db0.tar.bz2
c-ares-746f3e2942c36511fda867cac0573d2907290db0.zip
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h
index 877985b..e138cdd 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -99,6 +99,16 @@
# 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
+
struct query;
struct send_request {