(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
This commit is contained in:
		@@ -115,7 +115,7 @@ static int CDECL NGameNameSorter(const void *a, const void *b)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	const NetworkGameList *cmp1 = *(const NetworkGameList**)a;
 | 
						const NetworkGameList *cmp1 = *(const NetworkGameList**)a;
 | 
				
			||||||
	const NetworkGameList *cmp2 = *(const NetworkGameList**)b;
 | 
						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;
 | 
						return (_internal_sort_order & 1) ? -r : r;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								stdafx.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								stdafx.h
									
									
									
									
									
								
							@@ -144,6 +144,7 @@
 | 
				
			|||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# define strcasecmp stricmp
 | 
				
			||||||
#endif /* defined(_MSC_VER) */
 | 
					#endif /* defined(_MSC_VER) */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								win32.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								win32.c
									
									
									
									
									
								
							@@ -604,13 +604,6 @@ static void Win32InitializeExceptions(void)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __MINGW32__
 | 
					 | 
				
			||||||
static inline int strcasecmp(const char* s1, const char* s2)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	return stricmp(s1, s2);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static char *_fios_path;
 | 
					static char *_fios_path;
 | 
				
			||||||
static char *_fios_save_path;
 | 
					static char *_fios_save_path;
 | 
				
			||||||
static char *_fios_scn_path;
 | 
					static char *_fios_scn_path;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user