From 6e05e1e65ec32e639933b3f84cbef8e1cd61e1fd Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sat, 14 Sep 2024 00:23:01 +0200 Subject: [PATCH] Support building natively on Windows (#51) 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__