mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
add check for stdatomic.h
This commit is contained in:
@ -100,7 +100,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h])
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h stdatomic.h])
|
||||||
AC_CHECK_LIB([network],[socket])
|
AC_CHECK_LIB([network],[socket])
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
AC_C___ATOMIC
|
AC_C___ATOMIC
|
||||||
|
@ -307,10 +307,12 @@
|
|||||||
#define WOLFSSL_ATOMIC_OPS
|
#define WOLFSSL_ATOMIC_OPS
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
#ifdef HAVE_STDATOMIC_H
|
||||||
/* Default C Implementation */
|
/* Default C Implementation */
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
typedef atomic_int wolfSSL_Atomic_Int;
|
typedef atomic_int wolfSSL_Atomic_Int;
|
||||||
#define WOLFSSL_ATOMIC_OPS
|
#define WOLFSSL_ATOMIC_OPS
|
||||||
|
#endif /* HAVE_STDATOMIC_H */
|
||||||
#endif
|
#endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* Use MSVC compiler intrinsics for atomic ops */
|
/* Use MSVC compiler intrinsics for atomic ops */
|
||||||
|
Reference in New Issue
Block a user