Issue #23644: Fix issues with C++ when compiling Python extensions · Lemooonred/cpython@6562b29 · GitHub
Skip to content

Commit 6562b29

Browse files
committed
Issue python#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.
1 parent b28de01 commit 6562b29

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

Include/pyatomic.h

Lines changed: 3 additions & 9 deletions

Include/pystate.h

Lines changed: 7 additions & 3 deletions

0 commit comments

Comments
 (0)