Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pytorch/cpuinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyoyo Fujita <syoyo@lighttransport.com>2020-05-21 21:19:40 +0300
committerSyoyo Fujita <syoyo@lighttransport.com>2020-05-21 21:19:40 +0300
commit24e36b26eb28b1354e2625bd7d4530acbf3566c0 (patch)
tree844dddc7e4dca67d4491c6a88ec56d92d6bd761f
parent5e27a649b3ca8332c98d58808a5574526eee15d1 (diff)
Fix build on MinGW + Linux cross-compile
-rw-r--r--src/x86/windows/init.c5
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