Mercurial > hg > openttd
changeset 2889:e6813dede075 draft
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Thu, 26 Jan 2006 17:32:49 +0000 |
parents | fa7545ef800a |
children | 403b7feef558 |
files | network_gui.c stdafx.h win32.c |
diffstat | 3 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/network_gui.c +++ b/network_gui.c @@ -115,7 +115,7 @@ { 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; }