summaryrefslogtreecommitdiff
path: root/windows_port.c
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 /windows_port.c
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 'windows_port.c')
-rw-r--r--windows_port.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/windows_port.c b/windows_port.c
index 7ea6579..8b5e149 100644
--- a/windows_port.c
+++ b/windows_port.c
@@ -34,27 +34,6 @@ WINAPI DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved)
}
#endif
-#ifndef __MINGW32__
-int
-ares_strncasecmp(const char *a, const char *b, int n)
-{
- int i;
-
- for (i = 0; i < n; i++) {
- int c1 = ISUPPER(a[i]) ? tolower(a[i]) : a[i];
- int c2 = ISUPPER(b[i]) ? tolower(b[i]) : b[i];
- if (c1 != c2) return c1-c2;
- }
- return 0;
-}
-
-int
-ares_strcasecmp(const char *a, const char *b)
-{
- return strncasecmp(a, b, strlen(a)+1);
-}
-#endif
-
int
ares_writev (ares_socket_t s, const struct iovec *vector, size_t count)
{