fix: use #include_next in Linux overlay shims to prevent infinite recursion
All 6 case-sensitivity shim headers in tools/linux/overlay/include/ now use #include_next instead of #include to forward to the real MinGW system header, avoiding infinite preprocessor recursion on Linux (Debian/WSL) where overlay/include is first in the search path. Fixes build failures on Debian WSL (GCC 12) for all configurations. Also update nsis7z.dll binaries built with the fixed overlay.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* Linux/MinGW cross-build shim: Windows.h → windows.h */
|
||||
/* Linux/MinGW cross-build shim: Windows.h → windows.h
|
||||
* Uses #include_next so this shim is skipped on the recursive search,
|
||||
* forwarding to the real MinGW system windows.h without infinite recursion. */
|
||||
#pragma GCC system_header
|
||||
#include <windows.h>
|
||||
#include_next <windows.h>
|
||||
|
||||
Reference in New Issue
Block a user