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
#include <string.h>
#if !HAVE_DECL_STRCASECMP
#undef strcasecmp
#define strcasecmp stricmp
#endif
#if !HAVE_DECL_STRNCASECMP
#undef strncasecmp
#define strncasecmp strnicmp
#endif
#else