diff options
author | frosch <frosch@openttd.org> | 2010-07-03 15:15:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-07-03 15:15:19 +0000 |
commit | 30b42287237e6cd164c3a6bd399116f0e6e0ec07 (patch) | |
tree | 39f6bcf151cd1df563bf84d35711c90d33adb712 | |
parent | 70a35a94b5151b87ef8f79a60c40a9d5b1b2590a (diff) | |
download | openttd-30b42287237e6cd164c3a6bd399116f0e6e0ec07.tar.xz |
(svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms.
-rw-r--r-- | src/hotkeys.cpp | 2 |
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; } } |