undef str[n]casecmp() before redefining them

This commit is contained in:
Fabian Greffrath 2024-06-27 11:10:05 +02:00
parent bb584c3ba1
commit ed888d43ac

View File

@ -50,9 +50,11 @@ typedef byte lighttable_t;
#if !HAVE_DECL_STRCASECMP || !HAVE_DECL_STRNCASECMP #if !HAVE_DECL_STRCASECMP || !HAVE_DECL_STRNCASECMP
#include <string.h> #include <string.h>
#if !HAVE_DECL_STRCASECMP #if !HAVE_DECL_STRCASECMP
#undef strcasecmp
#define strcasecmp stricmp #define strcasecmp stricmp
#endif #endif
#if !HAVE_DECL_STRNCASECMP #if !HAVE_DECL_STRNCASECMP
#undef strncasecmp
#define strncasecmp strnicmp #define strncasecmp strnicmp
#endif #endif
#else #else