diff options
author | midipix <writeonce@midipix.org> | 2018-12-19 19:58:47 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-19 20:16:28 -0500 |
commit | 08042573a31d41f6af669babd9b911b3fd5d2433 (patch) | |
tree | 1301e4565c46d24d14e06e428679abd60771457d /profiles | |
parent | 5eb3ab3667560c57b3a38ff2daaa402510a0ee29 (diff) | |
download | sbpython2-08042573a31d41f6af669babd9b911b3fd5d2433.tar.bz2 sbpython2-08042573a31d41f6af669babd9b911b3fd5d2433.tar.xz |
custom config, modern.h: properly detect stdatomic.h and atomic built-ins.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/osapi/modern.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h index c756844..da13d99 100644 --- a/profiles/osapi/modern.h +++ b/profiles/osapi/modern.h @@ -1,6 +1,15 @@ #ifndef PY_OSAPI_MODERN_H #define PY_OSAPI_MODERN_H +/* atomics */ +#ifdef __ATOMIC_ACQUIRE +#define HAVE_BUILTIN_ATOMIC 1 +#endif + +#ifdef HAVE_STDATOMIC_H +#define HAVE_STD_ATOMIC 1 +#endif + /* stdc headers */ #define STDC_HEADERS 1 |