From 148e3c7828ebbe0ddafd29d83e67f91b9458b1bd Mon Sep 17 00:00:00 2001 From: Stefan Gretscher Date: Tue, 26 Jan 2021 12:13:41 +0100 Subject: [PATCH] Limiting SSE2 includes to compiling for SSE2 architectures (fixes build failure on ARM) --- Common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Common.h b/Common.h index 4176652..edb3928 100644 --- a/Common.h +++ b/Common.h @@ -23,7 +23,10 @@ #include #include #ifndef ICSTLIB_NO_SSEOPT + #if (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || \ + (defined(__SSE2__) && __SSE2__) #include // SSE2 intrinsics + #endif #endif #ifdef _WIN32 #ifndef NOMINMAX // no max/min macros are defined when