From 94478cb20843cb9d96b1699a17aa6d03143f54ad Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sat, 31 Aug 2024 22:11:54 +0800 Subject: [PATCH] wc_port.h: fix macros for powerpc --- wolfssl/wolfcrypt/wc_port.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index d07dbb1b3..0076f7f41 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -1106,7 +1106,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void); #endif /* PowerPC time_t is int */ - #ifdef __PPC__ + #if defined(__PPC__) || defined(__ppc__) #define TIME_T_NOT_64BIT #endif @@ -1274,7 +1274,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void); #define XFENCE() XASM_VOLATILE("isb") #elif defined(__riscv) #define XFENCE() XASM_VOLATILE("fence") - #elif defined(__PPC__) + #elif defined(__PPC__) || defined(__POWERPC__) #define XFENCE() XASM_VOLATILE("isync; sync") #else #define XFENCE() WC_DO_NOTHING