aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-09 02:13:19 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-09 02:13:19 +0100
commit4f5366e65a4d773fb5dda3329bd7b7c5425718fb (patch)
treec70447430a17fd84b9b2270a4707e36334a69d3e /pyconfig.h.in
parentMerge 3.4 (asyncio) (diff)
downloadcpython-4f5366e65a4d773fb5dda3329bd7b7c5425718fb.tar.gz
cpython-4f5366e65a4d773fb5dda3329bd7b7c5425718fb.tar.bz2
cpython-4f5366e65a4d773fb5dda3329bd7b7c5425718fb.zip
Issue #22038: pyatomic.h now uses stdatomic.h or GCC built-in functions for
atomic memory access if available. Patch written by Vitor de Lima and Gustavo Temple.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 8107c3af748..10d5f4a5f4b 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -101,6 +101,9 @@
/* Define if `unsetenv` does not return an int. */
#undef HAVE_BROKEN_UNSETENV
+/* Has builtin atomics */
+#undef HAVE_BUILTIN_ATOMIC
+
/* Define this if you have the type _Bool. */
#undef HAVE_C99_BOOL
@@ -877,6 +880,9 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
+/* Has stdatomic.h */
+#undef HAVE_STD_ATOMIC
+
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP