MinGW: Fix str*casecmp() macro redef. warning

MinGW defines strcasecmp() and strncasecmp() as macros in string.h if
__CRT__NO_INLINE is defined, which will be the case when including any
of the Win32 API headers.

Closes #594
This commit is contained in:
modbw
2022-04-22 08:30:21 +02:00
committed by DRC
parent 9171fd4bde
commit 290ddbf71a

View File

@@ -27,9 +27,13 @@
*/ */
#ifdef _WIN32 #ifdef _WIN32
#ifndef strcasecmp
#define strcasecmp stricmp #define strcasecmp stricmp
#endif
#ifndef strncasecmp
#define strncasecmp strnicmp #define strncasecmp strnicmp
#endif #endif
#endif
#ifdef _MSC_VER #ifdef _MSC_VER
#define SNPRINTF(str, n, format, ...) \ #define SNPRINTF(str, n, format, ...) \