From b4c6069ecc1a6b03051e06aecba04e828fb0d945 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 22 Apr 2024 12:52:26 -0700 Subject: Assume target platforms have strcasecmp now It has been required since Unix98/SUSv2 Signed-off-by: Alan Coopersmith Part-of: --- src/xkbmisc.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/xkbmisc.c') diff --git a/src/xkbmisc.c b/src/xkbmisc.c index b025048..6d80d6a 100644 --- a/src/xkbmisc.c +++ b/src/xkbmisc.c @@ -683,19 +683,3 @@ XkbNameMatchesPattern(char *name, char *ptrn) /* if we get here, the pattern is exhausted (-:just like me:-) */ return (name[0] == '\0'); } - -#ifndef HAVE_STRCASECMP -_X_HIDDEN int -_XkbStrCaseCmp(char *str1, char *str2) -{ - const u_char *us1 = (const u_char *) str1, *us2 = (const u_char *) str2; - - while (tolower(*us1) == tolower(*us2)) { - if (*us1++ == '\0') - return (0); - us2++; - } - - return (tolower(*us1) - tolower(*us2)); -} -#endif -- cgit v1.2.3