From 4e1e9949872574c479c1354e84e98a4dde42e057 Mon Sep 17 00:00:00 2001 From: amponzi Date: Sat, 27 Jan 2007 17:28:37 +0000 Subject: [PATCH] - strcasecmp is a deprecated command, used one that allows compiling when #HAVE_LIBZ is defined in VC++ --- desmume/src/ROMReader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/ROMReader.c b/desmume/src/ROMReader.c index 27072e484..37d16a194 100644 --- a/desmume/src/ROMReader.c +++ b/desmume/src/ROMReader.c @@ -8,14 +8,14 @@ ROMReader_struct * ROMReaderInit(char ** filename) { #ifdef HAVE_LIBZ - if(!strcasecmp(".gz", *filename + (strlen(*filename) - 3))) + if(!stricmp(".gz", *filename + (strlen(*filename) - 3))) { (*filename)[strlen(*filename) - 3] = '\0'; return &GZIPROMReader; } #endif #ifdef HAVE_LIBZZIP - if (!strcasecmp(".zip", *filename + (strlen(*filename) - 4))) + if (!stricmp(".zip", *filename + (strlen(*filename) - 4))) { (*filename)[strlen(*filename) - 4] = '\0'; return &ZIPROMReader;