MSVC, ARM64 - correct 64bit detection

Fixes https://github.com/wolfSSL/wolfssl/issues/4095
This commit is contained in:
Vladislav Vaintroub
2021-06-06 23:22:08 +02:00
parent d7117cd8bb
commit 29968716ea

View File

@ -159,7 +159,7 @@ decouple library dependencies with standard string, memory and so on.
#if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \ #if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \
defined(__mips64) || defined(__x86_64__) || defined(_M_X64)) || \ defined(__mips64) || defined(__x86_64__) || defined(_M_X64)) || \
defined(__aarch64__) || defined(__sparc64__) || defined(__s390x__ ) || \ defined(__aarch64__) || defined(__sparc64__) || defined(__s390x__ ) || \
(defined(__riscv_xlen) && (__riscv_xlen == 64)) (defined(__riscv_xlen) && (__riscv_xlen == 64)) || defined(_M_ARM64)
typedef word64 wolfssl_word; typedef word64 wolfssl_word;
#define WC_64BIT_CPU #define WC_64BIT_CPU
#elif (defined(sun) || defined(__sun)) && \ #elif (defined(sun) || defined(__sun)) && \