aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/soxr/003_detect_arm_on_windows.h13
-rw-r--r--ports/soxr/portfile.cmake1
2 files changed, 14 insertions, 0 deletions
diff --git a/ports/soxr/003_detect_arm_on_windows.h b/ports/soxr/003_detect_arm_on_windows.h
new file mode 100644
index 000000000..f1643fb63
--- /dev/null
+++ b/ports/soxr/003_detect_arm_on_windows.h
@@ -0,0 +1,13 @@
+diff --git a/src/pffft.c b/src/pffft.c
+index 0686bef..e4cb094 100644
+--- a/src/pffft.c
++++ b/src/pffft.c
+@@ -157,7 +157,7 @@ typedef __m128 v4sf;
+ /*
+ ARM NEON support macros
+ */
+-#elif !defined(PFFFT_SIMD_DISABLE) && defined(__arm__)
++#elif !defined(PFFFT_SIMD_DISABLE) && (defined(__arm__) || defined(_M_ARM))
+ # include <arm_neon.h>
+ typedef float32x4_t v4sf;
+ # define SIMD_SZ 4
diff --git a/ports/soxr/portfile.cmake b/ports/soxr/portfile.cmake
index 344b725f2..c1a028114 100644
--- a/ports/soxr/portfile.cmake
+++ b/ports/soxr/portfile.cmake
@@ -31,6 +31,7 @@ vcpkg_extract_source_archive_ex(
PATCHES
001_initialize-resampler.patch
002_disable_warning.patch
+ 003_detect_arm_on_windows.h
)
vcpkg_configure_cmake(