]> granicus.if.org Git - python/commit
Issue #23644: Fix issues with C++ when compiling Python extensions
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Mar 2015 21:53:27 +0000 (22:53 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Mar 2015 21:53:27 +0000 (22:53 +0100)
commit6562b29e13f4da98558636c43a1b242698c8f8d9
tree7258ee9662971eb81dc9d87489091873b3dcc39a
parentb28de01992fb2f1ab5c210157f719f74d3ea015a
Issue #23644: Fix issues with C++ when compiling Python extensions

Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++.

<pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in
pystate.h. Instead, declare PyThreadState_GET() as an alias to
PyThreadState_Get(), as done for limited API.
Include/pyatomic.h
Include/pystate.h