Skip to content

Commit

Permalink
Don't include frameobject.h on Python 3.11 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored Aug 21, 2023
1 parent a01e63e commit e4539d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ extern "C" {
#endif

#include <Python.h>
#include "frameobject.h" // PyFrameObject, PyFrame_GetBack()

// Python 3.11.0b4 added PyFrame_Back() to Python.h
#if PY_VERSION_HEX < 0x030b00B4 && !defined(PYPY_VERSION)
# include "frameobject.h" // PyFrameObject, PyFrame_GetBack()
#endif


#ifndef _Py_CAST
Expand Down

0 comments on commit e4539d0

Please sign in to comment.