- strcasecmp is a deprecated command, used one that allows compiling when #HAVE_LIBZ is defined in VC++
This commit is contained in:
parent
64892e09b9
commit
4e1e994987
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue