From f9caa9490a2872da962bf3cf9bc3a30cd2627bea Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 6 Jun 2009 12:33:51 +0000 Subject: [PATCH] stricmp is not available on !WIN32, use strcasecmp that is not available on WIN32 but it's already defined as _stricmp in types.h. --- desmume/src/NDSSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 902e2f0c8..e782d680a 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -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;