changeset: 94957:eb48295e1f8b user: Victor Stinner date: Thu Mar 12 16:04:41 2015 +0100 files: Include/pyatomic.h description: Issue #23644, #22038: Move #include inside the extern "C" { ... } block in pyatomic.h diff -r e78de5b1e3ef -r eb48295e1f8b Include/pyatomic.h --- a/Include/pyatomic.h Thu Mar 12 15:32:03 2015 +0100 +++ b/Include/pyatomic.h Thu Mar 12 16:04:41 2015 +0100 @@ -6,14 +6,14 @@ #include "pyconfig.h" +#ifdef __cplusplus +extern "C" { +#endif + #if defined(HAVE_STD_ATOMIC) #include #endif -#ifdef __cplusplus -extern "C" { -#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.