From 0550221978d520e4e12c459a6fab5be16d5fa753 Mon Sep 17 00:00:00 2001 From: Thijs Withaar Date: Sun, 9 Jun 2019 11:46:09 +0200 Subject: [soxr]: define arm on windows --- ports/soxr/003_detect_arm_on_windows.h | 13 +++++++++++++ ports/soxr/portfile.cmake | 1 + 2 files changed, 14 insertions(+) create mode 100644 ports/soxr/003_detect_arm_on_windows.h 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 + 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( -- cgit v1.2.3