| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,11 @@ extern "C" { | |||
| 19 | 19 | #endif | |
| 20 | 20 | ||
| 21 | 21 | #include <Python.h> | |
| 22 | - #include "frameobject.h" // PyFrameObject, PyFrame_GetBack() | ||
| 22 | + | ||
| 23 | + // Python 3.11.0b4 added PyFrame_Back() to Python.h | ||
| 24 | + #if PY_VERSION_HEX < 0x030b00B4 && !defined(PYPY_VERSION) | ||
| 25 | + # include "frameobject.h" // PyFrameObject, PyFrame_GetBack() | ||
| 26 | + #endif | ||
| 23 | 27 | ||
| 24 | 28 | ||
| 25 | 29 | #ifndef _Py_CAST | |
| Back | FazBrowse Home | New Git URL |
0 commit comments