Skip to content

Commit

Permalink
Include windows.h (lowercase) to fix cross-compiled MinGW builds (#75
Browse files Browse the repository at this point in the history
…, 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).
  • Loading branch information
salman-javed-nz authored Dec 28, 2023
1 parent 3db4031 commit d92253b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lest/lest_cpp03.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#if lest_FEATURE_TIME
# if lest_PLATFORM_IS_WINDOWS
# include <iomanip>
# include <Windows.h>
# include <windows.h>
# else
# include <iomanip>
# include <sys/time.h>
Expand Down

0 comments on commit d92253b

Please sign in to comment.