From 7374fe5984dc9013d7102ccb6e9d8541725648f2 Mon Sep 17 00:00:00 2001 From: Tamas TEVESZ Date: Mon, 20 Sep 2010 14:31:43 +0200 Subject: [PATCH] Remove local strcasecmp implementation Remove local strcasecmp implementation; whatever system doesn't have it is off the table for now. memcmp is used by WINGs; add autoconf check Signed-off-by: Tamas TEVESZ --- WINGs/string.c | 11 ----------- configure.ac | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/WINGs/string.c b/WINGs/string.c index 8cb0b031..d4c426d4 100644 --- a/WINGs/string.c +++ b/WINGs/string.c @@ -210,14 +210,3 @@ char *wstrappend(char *dst, char *src) return dst; } -#ifndef HAVE_STRCASECMP -int strcasecmp(const char *s1, const char *s2) -{ - while (*s1 && *s2 && (tolower(*s1) == tolower(*s2))) { - s1++; - s2++; - } - - return (tolower(*s1) - tolower(*s2)); -} -#endif diff --git a/configure.ac b/configure.ac index 4606bc70..deaac5c8 100644 --- a/configure.ac +++ b/configure.ac @@ -145,7 +145,7 @@ dnl ============================ dnl Checks for library functions dnl ============================ dnl not used anywhere -dnl AC_FUNC_MEMCMP +AC_FUNC_MEMCMP AC_FUNC_VPRINTF AC_CHECK_FUNCS(gethostname select poll strerror strcasecmp strncasecmp \ setsid atexit mallinfo mkstemp)