]> granicus.if.org Git - python/commitdiff
Issue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Mar 2015 15:04:41 +0000 (16:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Mar 2015 15:04:41 +0000 (16:04 +0100)
block in pyatomic.h

Include/pyatomic.h

index 80bd825bd75131c3f57ad848cc28b91cd1c9a9ff..aa55281a6477769c09103b823bad0ac5b5f1e822 100644 (file)
@@ -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.