@ 260915.5

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/screen.hpp. All files

src/screen.hpp

@@ -250,7 +250,7 @@ class Screen {   // emit text   static void put(const char *text, size_t size)   {-#ifdef OS_WIN+#ifdef OS_WIN_OR_MINGW     DWORD nwritten;     good = WriteFile(hConOut, text, static_cast<DWORD>(size), &nwritten, NULL) && good; #else@@ -285,7 +285,7 @@ class Screen {   static bool mono; // monochrome   static bool good; // true if all previous screen operations were successful after setup() -#ifdef OS_WIN+#ifdef OS_WIN_OR_MINGW    // Windows console   static HANDLE hConOut;