From e402b6643875a3f1bc42050f05fd1ccb9812d189 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 3 Jul 2010 15:15:19 +0000 Subject: [PATCH] (svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms. --- src/hotkeys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp index 6d463794fe..6856fc10e8 100644 --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -67,7 +67,7 @@ static uint16 ParseCode(const char *start, const char *end) return *start; } for (uint i = 0; i < lengthof(_keycode_to_name); i++) { - if (strnicmp(start, _keycode_to_name[i].name, end - start) == 0) { + if (strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) { return _keycode_to_name[i].keycode; } }