diff --git a/src/catcodec.cpp b/src/catcodec.cpp index 0d6a0dc..e96f8e6 100644 --- a/src/catcodec.cpp +++ b/src/catcodec.cpp @@ -202,7 +202,7 @@ int main(int argc, char *argv[]) char sfo_file[1024]; strncpy(sfo_file, argv[2], sizeof(sfo_file)); char *ext = strrchr(sfo_file, '.'); - if (ext == NULL || strlen(ext) != 4 || strcmp(ext, ".cat") != 0) { + if (ext == NULL || strlen(ext) != 4 || strcasecmp(ext, ".cat") != 0) { throw std::string("Unexpected extension; expected \".cat\""); } strcpy(ext, ".sfo"); diff --git a/src/stdafx.h b/src/stdafx.h index d8b4534..b673eea 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -37,6 +37,7 @@ # define UNUSED # define fileno _fileno +# define strcasecmp _stricmp # pragma warning(disable : 4996) // 'strdup' was declared deprecated #elif defined(__GNUC__) # include