From 08042573a31d41f6af669babd9b911b3fd5d2433 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 19 Dec 2018 19:58:47 -0500 Subject: custom config, modern.h: properly detect stdatomic.h and atomic built-ins. --- profiles/osapi/modern.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'profiles') 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 -- cgit v1.2.3