summaryrefslogtreecommitdiff
path: root/src/XKBfileInt.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-03-27 21:11:01 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-03-27 21:11:01 +0000
commit47dfc83937ed98e964716345cb4c8d817ae13e61 (patch)
tree445b3102c4fb84002d29dbd1dda1a55eaf5606b0 /src/XKBfileInt.h
parente61dfbf6c72369f83a833d3a5a04c306a6b289f8 (diff)
downloadxorg-lib-libxkbfile-47dfc83937ed98e964716345cb4c8d817ae13e61.tar.gz
Bug #3819: Fix serious botching of _XkbStrCaseCmp commit.XORG-7_0_99_901
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