Skip to content

Commit 005a57f

Browse files
authored
Merge pull request #7989 from billphipps/atomic_fence
Update to use memory_order_seq_cst instead of GCC internal for C11
2 parents bbbc40d + 7122001 commit 005a57f

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
@@ -1257,7 +1257,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
12571257
/* use user-supplied XFENCE definition. */
12581258
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
12591259
#include <stdatomic.h>
1260-
#define XFENCE() atomic_thread_fence(__ATOMIC_SEQ_CST)
1260+
#define XFENCE() atomic_thread_fence(memory_order_seq_cst)
12611261
#elif defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC__ < 5)
12621262
#define XFENCE() __sync_synchronize()
12631263
#elif (defined(__GNUC__) && (__GNUC__ >= 5)) || defined (__clang__)

0 commit comments

Comments
 (0)