From ed888d43acfd9e679bc68bbd26fbdbd7a4438562 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 27 Jun 2024 11:10:05 +0200 Subject: [PATCH] undef str[n]casecmp() before redefining them --- src/doomtype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doomtype.h b/src/doomtype.h index dae2d4ef..1bb167b8 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -50,9 +50,11 @@ typedef byte lighttable_t; #if !HAVE_DECL_STRCASECMP || !HAVE_DECL_STRNCASECMP #include #if !HAVE_DECL_STRCASECMP + #undef strcasecmp #define strcasecmp stricmp #endif #if !HAVE_DECL_STRNCASECMP + #undef strncasecmp #define strncasecmp strnicmp #endif #else