Use lower-case "windows.h" for case-sensitive file systems

The "windows.h" in MinGW-W64 is lower-case. When cross-compiling for
Windows on Linux with a case-sensitive file system, the upper-case
"Windows.h" file is not found and compilation fails.

Always use lower-case "windows.h" to fix cross-compilation.
This commit is contained in:
Nicolas Benes 2022-09-26 12:42:01 +02:00
parent 81de01c02c
commit 5ca5fdff9f

View File

@ -1,7 +1,7 @@
#include "includes.h"
#ifdef _WIN32
# include <Windows.h>
# include <windows.h>
#else
# include <sys/types.h>
# include <dirent.h>