diff --git a/library/aesce.h b/library/aesce.h index a29da3457..55cbd7e82 100644 --- a/library/aesce.h +++ b/library/aesce.h @@ -31,13 +31,13 @@ #include "mbedtls/aes.h" #if !defined(MBEDTLS_HAVE_ARM64) -#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \ - defined(__aarch64__) +#if defined(__GNUC__) && defined(__aarch64__) #define MBEDTLS_HAVE_ARM64 #endif /* MSVC */ -#if defined(_M_ARM64) || defined(_M_ARM64EC) +#if defined(_MSC_VER) && _MSC_VER >=1929 && \ + (defined(_M_ARM64) || defined(_M_ARM64EC)) #define MBEDTLS_HAVE_ARM64 #endif #endif