diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-07 10:59:26 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-07 10:59:26 +0200 |
commit | d63c1a3953898fff616e69ed75522b89a80d9c8c (patch) | |
tree | b4557ae677468d39ab2149fa0ef1d1003098196a /thirdparty/mbedtls/include | |
parent | 0a7f75ec7b465604b6496c8f5f1d638aed250d6d (diff) | |
download | redot-engine-d63c1a3953898fff616e69ed75522b89a80d9c8c.tar.gz |
mbedtls: Fix MSVC ARM build after 2.28.3 enabled AES-NI intrinsics
Diffstat (limited to 'thirdparty/mbedtls/include')
-rw-r--r-- | thirdparty/mbedtls/include/mbedtls/aesni.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thirdparty/mbedtls/include/mbedtls/aesni.h b/thirdparty/mbedtls/include/mbedtls/aesni.h index 6741dead05..6c545bd4a3 100644 --- a/thirdparty/mbedtls/include/mbedtls/aesni.h +++ b/thirdparty/mbedtls/include/mbedtls/aesni.h @@ -54,9 +54,10 @@ * macros that may change in future releases. */ #undef MBEDTLS_AESNI_HAVE_INTRINSICS -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_IX86)) /* Visual Studio supports AESNI intrinsics since VS 2008 SP1. We only support - * VS 2013 and up for other reasons anyway, so no need to check the version. */ + * VS 2013 and up for other reasons anyway, so no need to check the version. + * Only supported on x64 and x86. */ #define MBEDTLS_AESNI_HAVE_INTRINSICS #endif /* GCC-like compilers: currently, we only support intrinsics if the requisite |