From 9a2dcdc68b6f1189971d2e3498d0ea2a27c46f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Sun, 20 Oct 2024 12:59:32 +0000 Subject: [PATCH] [Fix] MSVC ARM64EC requires including advanced intrinsics headers via and not directly. Improve code compatibility in case we should ever enable SSE2 on ARM64EC. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21888 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- sounddsp/EQ.cpp | 3 +++ sounddsp/Reverb.cpp | 3 +++ tracklib/SampleEdit.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sounddsp/EQ.cpp b/sounddsp/EQ.cpp index 7ecb7e83bbe..abf308c389b 100644 --- a/sounddsp/EQ.cpp +++ b/sounddsp/EQ.cpp @@ -31,6 +31,9 @@ #include #if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE) +#if MPT_COMPILER_MSVC +#include +#endif #include #endif diff --git a/sounddsp/Reverb.cpp b/sounddsp/Reverb.cpp index 36b47a1802a..bf2cae4ffc9 100644 --- a/sounddsp/Reverb.cpp +++ b/sounddsp/Reverb.cpp @@ -20,6 +20,9 @@ #include "mpt/base/numbers.hpp" #if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE2) +#if MPT_COMPILER_MSVC +#include +#endif #include #endif diff --git a/tracklib/SampleEdit.cpp b/tracklib/SampleEdit.cpp index 05822da51ff..0e5bfd2ed97 100644 --- a/tracklib/SampleEdit.cpp +++ b/tracklib/SampleEdit.cpp @@ -31,6 +31,9 @@ #endif // MPT_COMPILER_MSVC #if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE2) +#if MPT_COMPILER_MSVC +#include +#endif #include #endif