diff --git a/src/scripts/cmake/CythonExtension.cmake b/src/scripts/cmake/CythonExtension.cmake index 7b17178..6afeb55 100644 --- a/src/scripts/cmake/CythonExtension.cmake +++ b/src/scripts/cmake/CythonExtension.cmake @@ -23,12 +23,10 @@ file(WRITE ${PATCH_FILE} " #ifndef HAVE_PYINTERPRETERSTATE_GETID #define HAVE_PYINTERPRETERSTATE_GETID - #include - #include #include - int64_t PyInterpreterState_GetID(PyInterpreterState *interp) { - return 0; - } + #ifndef PyInterpreterState_GetID + #define PyInterpreterState_GetID(x) (0) + #endif #endif " )