summaryrefslogtreecommitdiff
path: root/lea_simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-04 11:25:55 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-04 11:25:55 -0500
commit02f7fda54b001a824817cc51a44bd02c6466c7bf (patch)
tree91cd2602b4e55ca85ecd05e58be56a55addb44f6 /lea_simd.cpp
parent9277d115a86d642497e710e50976b31cb6f2d0cf (diff)
downloadcryptopp-git-02f7fda54b001a824817cc51a44bd02c6466c7bf.tar.gz
Fix <arm_neon.h> include for ARM64 with MSVC compiler (GH #776)
Diffstat (limited to 'lea_simd.cpp')
-rw-r--r--lea_simd.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lea_simd.cpp b/lea_simd.cpp
index 060b6468..b4180e34 100644
--- a/lea_simd.cpp
+++ b/lea_simd.cpp
@@ -31,13 +31,14 @@
# include <immintrin.h>
#endif
+// C1189: error: This header is specific to ARM targets
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
# include "adv_simd.h"
-# include <arm_neon.h>
+# ifndef _M_ARM64
+# include <arm_neon.h>
+# endif
#endif
-// Can't use CRYPTOPP_ARM_XXX_AVAILABLE because too many
-// compilers don't follow ACLE conventions for the include.
#if (CRYPTOPP_ARM_ACLE_AVAILABLE)
# include <stdint.h>
# include <arm_acle.h>