Skip to content

Commit 9a4a321

Browse files
committed
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 <[email protected]>
1 parent 21a5c51 commit 9a4a321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lstm/weightmatrix.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "weightmatrix.h"
2020

2121
#undef NONX86_BUILD
22-
#if defined(ANDROID_BUILD) or defined(__PPC__) or defined(_ARCH_PPC64)
22+
#if !defined(__x86_64__) && !defined(__i386__) && !defined(_WIN32) || defined(ANDROID_BUILD)
2323
#define NONX86_BUILD 1
2424
#endif
2525

0 commit comments

Comments
 (0)