Skip to content

Commit 94478cb

Browse files
committed
wc_port.h: fix macros for powerpc
1 parent ef24243 commit 94478cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
11061106
#endif
11071107

11081108
/* PowerPC time_t is int */
1109-
#ifdef __PPC__
1109+
#if defined(__PPC__) || defined(__ppc__)
11101110
#define TIME_T_NOT_64BIT
11111111
#endif
11121112

@@ -1274,7 +1274,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
12741274
#define XFENCE() XASM_VOLATILE("isb")
12751275
#elif defined(__riscv)
12761276
#define XFENCE() XASM_VOLATILE("fence")
1277-
#elif defined(__PPC__)
1277+
#elif defined(__PPC__) || defined(__POWERPC__)
12781278
#define XFENCE() XASM_VOLATILE("isync; sync")
12791279
#else
12801280
#define XFENCE() WC_DO_NOTHING

0 commit comments

Comments
 (0)