diff options
-rw-r--r-- | Cython/Utility/ExtensionTypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c index 2b759aac7..04d95a4d4 100644 --- a/Cython/Utility/ExtensionTypes.c +++ b/Cython/Utility/ExtensionTypes.c @@ -75,7 +75,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { PyObject *ret, *py_status; int gc_was_enabled; PyObject *gc = NULL; - #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x070304 + #if PY_VERSION_HEX >= 0x030700a1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) // https://foss.heptapod.net/pypy/pypy/-/issues/3385 gc = PyImport_GetModule(PYUNICODE("gc")); #endif |