summaryrefslogtreecommitdiff
path: root/profiles/osapi/modern.h
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/osapi/modern.h')
-rw-r--r--profiles/osapi/modern.h9
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