diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index df8e9f6f5..2afc82b8c 100755 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -101,7 +101,7 @@ #if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \ defined(__mips64) || defined(__x86_64__) || defined(_M_X64)) || \ defined(__aarch64__) || defined(__sparc64__) || \ - (defined(__SIZEOF_POINTER__) && (__SIZEOF_POINTER__ == 8)) + (defined(__riscv_xlen) && (__riscv_xlen == 64)) typedef word64 wolfssl_word; #define WC_64BIT_CPU #elif (defined(sun) || defined(__sun)) && \