From 7122001dd6fc35bdf29db7c2a4cdc8029f599e56 Mon Sep 17 00:00:00 2001 From: Bill Phipps Date: Wed, 18 Sep 2024 13:48:26 -0400 Subject: [PATCH] Update to use memory_order_seq_cst instead of GCC internal for C11 --- wolfssl/wolfcrypt/wc_port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index ceb408d7a6..dddf55851e 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -1268,7 +1268,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void); /* use user-supplied XFENCE definition. */ #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) #include - #define XFENCE() atomic_thread_fence(__ATOMIC_SEQ_CST) + #define XFENCE() atomic_thread_fence(memory_order_seq_cst) #elif defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC__ < 5) #define XFENCE() __sync_synchronize() #elif (defined(__GNUC__) && (__GNUC__ >= 5)) || defined (__clang__)