mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Check for STDC_NO_ATOMICS
This commit is contained in:
@ -1042,3 +1042,4 @@ ssize_t
|
|||||||
sun
|
sun
|
||||||
versal
|
versal
|
||||||
wc_Tls13_HKDF_Expand_Label
|
wc_Tls13_HKDF_Expand_Label
|
||||||
|
__STDC_NO_ATOMICS__
|
||||||
|
@ -1524,7 +1524,8 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#ifndef WOLFSSL_NO_FENCE
|
#ifndef WOLFSSL_NO_FENCE
|
||||||
#ifdef XFENCE
|
#ifdef XFENCE
|
||||||
/* use user-supplied XFENCE definition. */
|
/* use user-supplied XFENCE definition. */
|
||||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
|
||||||
|
!defined(__STDC_NO_ATOMICS__)
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
#define XFENCE() atomic_thread_fence(memory_order_seq_cst)
|
#define XFENCE() atomic_thread_fence(memory_order_seq_cst)
|
||||||
#elif defined(__GNUC__) && (__GNUC__ == 4) && \
|
#elif defined(__GNUC__) && (__GNUC__ == 4) && \
|
||||||
|
Reference in New Issue
Block a user