summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-03 15:15:19 +0000
committerfrosch <frosch@openttd.org>2010-07-03 15:15:19 +0000
commit30b42287237e6cd164c3a6bd399116f0e6e0ec07 (patch)
tree39f6bcf151cd1df563bf84d35711c90d33adb712
parent70a35a94b5151b87ef8f79a60c40a9d5b1b2590a (diff)
downloadopenttd-30b42287237e6cd164c3a6bd399116f0e6e0ec07.tar.xz
(svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms.
-rw-r--r--src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 6d463794f..6856fc10e 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;
}
}