diff options
| author | Thijs Withaar <thijs.withaar@gmail.com> | 2019-06-09 11:46:09 +0200 |
|---|---|---|
| committer | Thijs Withaar <thijs.withaar@gmail.com> | 2019-06-27 18:41:28 +0200 |
| commit | 0550221978d520e4e12c459a6fab5be16d5fa753 (patch) | |
| tree | 33448950c146728bfe543bb6713ae2bf9fa19624 | |
| parent | f884a9e2ea75d623b4bf2d1d68e4680bdfeaacc8 (diff) | |
| download | vcpkg-0550221978d520e4e12c459a6fab5be16d5fa753.tar.gz vcpkg-0550221978d520e4e12c459a6fab5be16d5fa753.zip | |
[soxr]: define arm on windows
| -rw-r--r-- | ports/soxr/003_detect_arm_on_windows.h | 13 | ||||
| -rw-r--r-- | ports/soxr/portfile.cmake | 1 |
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(
|
