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:
committed by
Carlos R. Mafra
parent
e18eba6ae7
commit
7374fe5984
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user