From d92253b51b06fdd646d0fba8231546682085b6fe Mon Sep 17 00:00:00 2001 From: Salman Javed <89359699+salman-javed-nz@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:44:32 +1300 Subject: [PATCH] Include `windows.h` (lowercase) to fix cross-compiled MinGW builds (#75, thanks @salman-javed-nz) When cross-compiling from a host that treats file paths as case-sensitive (e.g. Linux) to target Windows using MinGW, the build fails when looking for `Windows.h`. The solution is to #include this header as `windows.h` (lowercase). --- include/lest/lest_cpp03.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lest/lest_cpp03.hpp b/include/lest/lest_cpp03.hpp index d6c02bd..dec1857 100644 --- a/include/lest/lest_cpp03.hpp +++ b/include/lest/lest_cpp03.hpp @@ -66,7 +66,7 @@ #if lest_FEATURE_TIME # if lest_PLATFORM_IS_WINDOWS # include -# include +# include # else # include # include