1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

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 <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ
2010-09-20 14:31:43 +02:00
committed by Carlos R. Mafra
parent e18eba6ae7
commit 7374fe5984
2 changed files with 1 additions and 12 deletions

View File

@@ -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

View File

@@ -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)