From 5068a8f257dc7ae5502a4f8e1f45bcab76406389 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 7 Jan 2024 16:12:41 +0100 Subject: [PATCH] When using MSVC on aarch64, __ARM_ARCH is not defined Reported by RADDI.net -- Thanks! --- src/libsodium/include/sodium/private/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsodium/include/sodium/private/common.h b/src/libsodium/include/sodium/private/common.h index 82043b75..63f0d2b2 100644 --- a/src/libsodium/include/sodium/private/common.h +++ b/src/libsodium/include/sodium/private/common.h @@ -250,6 +250,9 @@ xor_buf(unsigned char *out, const unsigned char *in, size_t n) # elif defined(_M_ARM64) +# ifndef __ARM_ARCH +# define __ARM_ARCH 1 +# endif # ifndef __ARM_NEON # define __ARM_NEON 1 # endif