From 92c14d194fb52ba92c57478f5f4a3c74bb48825d Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Fri, 13 Sep 2024 22:05:06 +0200 Subject: [PATCH] Support building natively on Windows When building for Windows using a native toolchain (i.e. not MinGW or MSYS), `` is not available. Include `` instead and define `strcasecmp`. --- Tools/gpbs.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/gpbs.m b/Tools/gpbs.m index fb7bac2f..5cf72511 100644 --- a/Tools/gpbs.m +++ b/Tools/gpbs.m @@ -38,7 +38,12 @@ #endif #include +#ifdef HAVE_UNISTD_H #include +#else +#include +#define strcasecmp _stricmp +#endif #include #ifdef __MINGW__