summaryrefslogtreecommitdiffstats
path: root/Include/pyatomic.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-12 15:04:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-12 15:04:41 (GMT)
commit3b6d0ae8fe50123d23f07190e8f792a1dd19cc61 (patch)
tree72fb8c2dbfe9137e3442c3b0e432219be53285d8 /Include/pyatomic.h
parent95bb714ff759312479cf87b1ff6ec0c14c41b328 (diff)
downloadcpython-3b6d0ae8fe50123d23f07190e8f792a1dd19cc61.zip
cpython-3b6d0ae8fe50123d23f07190e8f792a1dd19cc61.tar.gz
cpython-3b6d0ae8fe50123d23f07190e8f792a1dd19cc61.tar.bz2
Issue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }
block in pyatomic.h
Diffstat (limited to 'Include/pyatomic.h')
-rw-r--r--Include/pyatomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/pyatomic.h b/Include/pyatomic.h
index 80bd825..aa55281 100644
--- a/Include/pyatomic.h
+++ b/Include/pyatomic.h
@@ -6,14 +6,14 @@
#include "pyconfig.h"
-#if defined(HAVE_STD_ATOMIC)
-#include <stdatomic.h>
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
+#if defined(HAVE_STD_ATOMIC)
+#include <stdatomic.h>
+#endif
+
/* This is modeled after the atomics interface from C1x, according to
* the draft at
* http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1425.pdf.