# HG changeset patch # User frosch # Date 2010-07-03 15:15:19 # Node ID 387627af240b6d4294668a0105896733f6d7d75c # Parent 54ee8730c306bf4c31972e8a00af34c4e22fb965 (svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms. diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -67,7 +67,7 @@ static uint16 ParseCode(const char *star 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; } }