3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-25 15:23:41 +00:00

Merge pull request #446 from msullivan/arm-build

Fix gcc build failure on ARM caused by including <emmintrin.h>
This commit is contained in:
Christoph M. Wintersteiger 2016-02-12 18:27:14 +00:00
commit 3356f36b8f

View file

@ -29,7 +29,8 @@ Revision History:
#include<fenv.h> #include<fenv.h>
#endif #endif
#ifndef _M_IA64 #if defined(__x86_64__) || defined(_M_X64) || \
defined(__i386) || defined(_M_IX86)
#define USE_INTRINSICS #define USE_INTRINSICS
#endif #endif
@ -47,7 +48,9 @@ Revision History:
// Luckily, these are kind of standardized, at least for Windows/Linux/OSX. // Luckily, these are kind of standardized, at least for Windows/Linux/OSX.
#ifdef __clang__ #ifdef __clang__
#undef USE_INTRINSICS #undef USE_INTRINSICS
#else #endif
#ifdef USE_INTRINSICS
#include <emmintrin.h> #include <emmintrin.h>
#endif #endif