diff options
author | Syoyo Fujita <syoyo@lighttransport.com> | 2020-05-21 21:19:40 +0300 |
---|---|---|
committer | Syoyo Fujita <syoyo@lighttransport.com> | 2020-05-21 21:19:40 +0300 |
commit | 24e36b26eb28b1354e2625bd7d4530acbf3566c0 (patch) | |
tree | 844dddc7e4dca67d4491c6a88ec56d92d6bd761f | |
parent | 5e27a649b3ca8332c98d58808a5574526eee15d1 (diff) |
Fix build on MinGW + Linux cross-compile
-rw-r--r-- | src/x86/windows/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x86/windows/init.c b/src/x86/windows/init.c index cf549d5..f4e7a99 100644 --- a/src/x86/windows/init.c +++ b/src/x86/windows/init.c @@ -8,7 +8,12 @@ #include <cpuinfo/internal-api.h> #include <cpuinfo/log.h> +#if defined(__MINGW32__) +// Windows header filename must be all lower case on MinGW +#include <windows.h> +#else #include <Windows.h> +#endif #ifdef __GNUC__ #define CPUINFO_ALLOCA __builtin_alloca |