Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-39026: Fix Python.h when building with Xcode
Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.
  • Loading branch information
vstinner committed Nov 9, 2021
commit 69f004f886ae16717fcf90155ee4b39145010d27
2 changes: 1 addition & 1 deletion Include/Python.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
#include "sliceobject.h"
#include "cpython/cellobject.h"
#include "iterobject.h"
#include "cpython/initconfig.h"
#include "pystate.h"
#include "cpython/genobject.h"
#include "descrobject.h"
Expand All @@ -83,7 +84,6 @@
#include "cpython/pytime.h"
#include "codecs.h"
#include "pyerrors.h"
#include "cpython/initconfig.h"
#include "pythread.h"
#include "cpython/context.h"
#include "modsupport.h"
Expand Down
2 changes: 0 additions & 2 deletions Include/cpython/pystate.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# error "this header file must not be included directly"
#endif

#include "cpython/initconfig.h"

PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *);
PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix Python.h to build C extensions with Xcode: remove a relative include
from ``Include/cpython/pystate.h``.