From 9a4a32137c4790aa8e4c32dd0ddfc388f9eb55d7 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 24 Dec 2016 19:00:00 +0100 Subject: [PATCH] Fix build for non x86 cpuid.h is only available for x86 builds. There are lots of non x86 architectures, so simply checking for PowerPC is not enough. Signed-off-by: Stefan Weil --- lstm/weightmatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lstm/weightmatrix.cpp b/lstm/weightmatrix.cpp index e29eccb6..e0bed08c 100644 --- a/lstm/weightmatrix.cpp +++ b/lstm/weightmatrix.cpp @@ -19,7 +19,7 @@ #include "weightmatrix.h" #undef NONX86_BUILD -#if defined(ANDROID_BUILD) or defined(__PPC__) or defined(_ARCH_PPC64) +#if !defined(__x86_64__) && !defined(__i386__) && !defined(_WIN32) || defined(ANDROID_BUILD) #define NONX86_BUILD 1 #endif