260804.1 · 8b661eb3d5ec3323bb88036318c7415fed80b6c9
MinGW portability fixes
- see also #553
- distinct OS_WIN versus OS_WIN_MINGW is necessary, since MinGW is almost windows but not quite, so most changes are for #ifdef checks with a few code blocks moved (no new logic)
- tested with MinGW-w64 UCRT64 with MSYS2 GCC 16.1
- updated verify.sh runs with 'make test' skips directory searches for MinGW, because of the lack of symlink support
- appease -Wunused
reading declarations
Changes to src/glob.cpp. All files
@@ -83,7 +83,7 @@ // a/** matches a/x, a/y, a/x/y but not a, b/x // a\?b matches a?b but not a, b, ab, axb, a/b -// check if we are natively compiling for a Windows OS (not Cygwin and not MinGW)+// check if we are natively compiling for a windows OS, but not Cygwin or MinGW #if (defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(__BORLANDC__)) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__MINGW64__) # define OS_WIN #endif@@ -92,7 +92,7 @@ #include <cstring> #include <cctype> -#ifdef OS_WIN+#ifdef OS_WIN // compiling for a windows OS, but not Cygwin or MinGW #define PATHSEP '\\' #else #define PATHSEP '/'