1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 17:39:09 +00:00

(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC

This commit is contained in:
Darkvater
2006-01-26 17:32:49 +00:00
parent 070edf2f73
commit c8a2c7ae94
3 changed files with 2 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ static int CDECL NGameNameSorter(const void *a, const void *b)
{
const NetworkGameList *cmp1 = *(const NetworkGameList**)a;
const NetworkGameList *cmp2 = *(const NetworkGameList**)b;
int r = stricmp(cmp1->info.server_name, cmp2->info.server_name);
int r = strcasecmp(cmp1->info.server_name, cmp2->info.server_name);
return (_internal_sort_order & 1) ? -r : r;
}