stricmp is not available on !WIN32, use strcasecmp that is not available on WIN32 but it's already defined as _stricmp in types.h.

This commit is contained in:
riccardom 2009-06-06 12:33:51 +00:00
parent d8d593d048
commit f9caa9490a
1 changed files with 3 additions and 3 deletions

View File

@ -759,11 +759,11 @@ int NDS_LoadROM( const char *filename,
break;
}
if(!stricmp(extROM, ".zip"))
if(!strcasecmp(extROM, ".zip"))
type = ROM_NDS;
else if ( !stricmp(extROM, ".nds"))
else if ( !strcasecmp(extROM, ".nds"))
type = ROM_NDS;
else if ( !stricmp(extROM, ".gba") && !strcmp(extROM2, ".ds"))
else if ( !strcasecmp(extROM, ".gba") && !strcasecmp(extROM2, ".ds"))
type = ROM_DSGBA;
else
return -1;