summaryrefslogtreecommitdiff
path: root/src/XKBfileInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/XKBfileInt.h')
-rw-r--r--src/XKBfileInt.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/XKBfileInt.h b/src/XKBfileInt.h
index a20094e..7eb81a0 100644
--- a/src/XKBfileInt.h
+++ b/src/XKBfileInt.h
@@ -68,7 +68,13 @@ extern char * _XkbDupString(
char * /* old_str */
);
-#define _XkbStrCaseEqual(s1,s2) (strcmp(tolower(s1),tolower(s2))==0)
+#define _XkbStrCaseEqual(s1,s2) (_XkbStrCaseCmp(s1,s2)==0)
+
+#ifdef NEED_STRCASECMP
+extern int _XkbStrCaseCmp(char *s1, char *s2);
+#else
+#define _XkbStrCaseCmp strcasecmp
+#endif
_XFUNCPROTOEND