mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 23:34:13 +08:00
mdbx: check gcc/clang version for stdatomic.h
This commit is contained in:
parent
4e9b734b52
commit
8848df34bc
@ -447,7 +447,9 @@ int mdbx_rpid_check(MDB_env *env, mdbx_pid_t pid);
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
|
#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) && \
|
||||||
|
(__GNUC_PREREQ(4, 9) || __CLANG_PREREQ(3, 8) || \
|
||||||
|
!(defined(__GNUC__) || defined(__clang__)))
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
#elif defined(__GNUC__) || defined(__clang__)
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
/* LY: nothing required */
|
/* LY: nothing required */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user