Skip to content

Commit

Permalink
bpo-39026: Fix Python.h when building with Xcode (GH-29488)
Browse files Browse the repository at this point in the history
Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.
  • Loading branch information
vstinner authored Nov 23, 2021
1 parent 5be98e5 commit 4ae26b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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``.

0 comments on commit 4ae26b9

Please sign in to comment.