mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Use SDL_tolower() instead of libc tolower() in compare_nocase()
This is to avoid having to depend on libc as much as possible.
This commit is contained in:
parent
8366e08fbe
commit
fbfeeaccd1
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ bool compare_nocase (std::string first, std::string second)
|
|||
unsigned int i=0;
|
||||
while ( (i<first.length()) && (i<second.length()) )
|
||||
{
|
||||
if (tolower(first[i])<tolower(second[i]))
|
||||
if (SDL_tolower(first[i])<SDL_tolower(second[i]))
|
||||
return true;
|
||||
else if (tolower(first[i])>tolower(second[i]))
|
||||
else if (SDL_tolower(first[i])>SDL_tolower(second[i]))
|
||||
return false;
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue