Skip to content

Commit 7122001

Browse files
committed
Update to use memory_order_seq_cst instead of GCC internal for C11
1 parent 9666394 commit 7122001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
12681268
/* use user-supplied XFENCE definition. */
12691269
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
12701270
#include <stdatomic.h>
1271-
#define XFENCE() atomic_thread_fence(__ATOMIC_SEQ_CST)
1271+
#define XFENCE() atomic_thread_fence(memory_order_seq_cst)
12721272
#elif defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC__ < 5)
12731273
#define XFENCE() __sync_synchronize()
12741274
#elif (defined(__GNUC__) && (__GNUC__ >= 5)) || defined (__clang__)

0 commit comments

Comments
 (0)