From 90e3af27b5b6a6186bfe1c41789faf6e90bd1554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Tue, 27 Mar 2018 02:28:22 +0200 Subject: Guard xmmintrin.h include so it is only used when necessary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The x86/SSE specific code for Flush-To-Zero is only used when SSE_CORRECT_DENORMALS is not defined. Guarding the include allows the code to compile on e.g. ARM. Signed-off-by: Stefan BrĂ¼ns Gbp-Pq: Name 0007-Guard-xmmintrin.h-include-so-it-is-only-used-when-ne.patch --- openEMS/FDTD/engine_multithread.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openEMS/FDTD/engine_multithread.cpp') diff --git a/openEMS/FDTD/engine_multithread.cpp b/openEMS/FDTD/engine_multithread.cpp index 7370198..7ebe0d7 100644 --- a/openEMS/FDTD/engine_multithread.cpp +++ b/openEMS/FDTD/engine_multithread.cpp @@ -32,7 +32,10 @@ #include "boost/date_time/posix_time/posix_time.hpp" #include "boost/date_time/gregorian/gregorian.hpp" #include + +#ifndef SSE_CORRECT_DENORMALS #include +#endif //! \brief construct an Engine_Multithread instance //! it's the responsibility of the caller to free the returned pointer -- cgit v1.2.3