- strcasecmp is a deprecated command, used one that allows compiling when #HAVE_LIBZ is defined in VC++

This commit is contained in:
amponzi 2007-01-27 17:28:37 +00:00
parent 64892e09b9
commit 4e1e994987
1 changed files with 2 additions and 2 deletions

View File

@ -8,14 +8,14 @@
ROMReader_struct * ROMReaderInit(char ** filename) ROMReader_struct * ROMReaderInit(char ** filename)
{ {
#ifdef HAVE_LIBZ #ifdef HAVE_LIBZ
if(!strcasecmp(".gz", *filename + (strlen(*filename) - 3))) if(!stricmp(".gz", *filename + (strlen(*filename) - 3)))
{ {
(*filename)[strlen(*filename) - 3] = '\0'; (*filename)[strlen(*filename) - 3] = '\0';
return &GZIPROMReader; return &GZIPROMReader;
} }
#endif #endif
#ifdef HAVE_LIBZZIP #ifdef HAVE_LIBZZIP
if (!strcasecmp(".zip", *filename + (strlen(*filename) - 4))) if (!stricmp(".zip", *filename + (strlen(*filename) - 4)))
{ {
(*filename)[strlen(*filename) - 4] = '\0'; (*filename)[strlen(*filename) - 4] = '\0';
return &ZIPROMReader; return &ZIPROMReader;