From 7cce9f934d8aece662c53ff753c760d4ab634115 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 5 Jun 2023 20:08:09 +0100 Subject: [PATCH] Fix strncasecmp related compilation errors on MSVC --- src/string.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/string.cpp b/src/string.cpp index 29dc221211..55495cd107 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -20,6 +20,11 @@ #include /* required for tolower() */ #include +#ifdef _MSC_VER +# include // required by vsnprintf implementation for MSVC +# define strncasecmp strnicmp +#endif + #ifdef _WIN32 # include "os/windows/win32.h" #endif