diff --git a/c/call_python.c b/c/call_python.c index d3d2e17..d291eb3 100644 --- a/c/call_python.c +++ b/c/call_python.c @@ -1,8 +1,10 @@ #if PY_VERSION_HEX >= 0x03080000 -# define HAVE_PYINTERPSTATE_GETDICT +# define Py_BUILD_CORE +/* for access to the fields of PyInterpreterState */ +# include "internal/pycore_pystate.h" +# undef Py_BUILD_CORE #endif - static PyObject *_current_interp_key(void) { PyInterpreterState *interp = PyThreadState_GET()->interp; -- 2.23.0