(svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms.

This commit is contained in:
frosch
2010-07-03 15:15:19 +00:00
parent b2ecf55f13
commit e402b66438

View File

@@ -67,7 +67,7 @@ static uint16 ParseCode(const char *start, const char *end)
return *start; return *start;
} }
for (uint i = 0; i < lengthof(_keycode_to_name); i++) { 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; return _keycode_to_name[i].keycode;
} }
} }