Skip to content

Commit

Permalink
Define PyInterpreterState_GetID as a macro instead of a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 27, 2024
1 parent fc8a37c commit f796016
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/scripts/cmake/CythonExtension.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ file(WRITE ${PATCH_FILE}
"
#ifndef HAVE_PYINTERPRETERSTATE_GETID
#define HAVE_PYINTERPRETERSTATE_GETID
#include <stdint.h>
#include <stdlib.h>
#include <Python.h>
int64_t PyInterpreterState_GetID(PyInterpreterState *interp) {
return 0;
}
#ifndef PyInterpreterState_GetID
#define PyInterpreterState_GetID(x) (0)
#endif
#endif
"
)
Expand Down

0 comments on commit f796016

Please sign in to comment.