From 9db77385d0ed10e43c5c3eb81e51ea76a1ea0c98 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 11 Sep 2023 00:58:53 +0200 Subject: [PATCH] Visual Studio: define __ARM_NEON on Windows/ARM --- src/libsodium/include/sodium/private/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libsodium/include/sodium/private/common.h b/src/libsodium/include/sodium/private/common.h index 6832a712..4d892f92 100644 --- a/src/libsodium/include/sodium/private/common.h +++ b/src/libsodium/include/sodium/private/common.h @@ -252,9 +252,10 @@ xor_buf(unsigned char *out, const unsigned char *in, size_t n) # elif defined(_M_ARM64) -# ifdef __ARM_NEON -# define HAVE_ARMCRYPTO 1 +# ifndef __ARM_NEON +# define __ARM_NEON 1 # endif +# define HAVE_ARMCRYPTO 1 # endif /* _MSC_VER */