Skip to content

Commit

Permalink
wc_port.h: fix macros for powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Sep 1, 2024
1 parent ef24243 commit 94478cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94478cb

Please sign in to comment.