Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/hyperscan/extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
#include <stdlib.h>
#include <structmember.h>

#if PY_VERSION_HEX < 0x030A0000
static inline PyObject *Py_NewRef(PyObject *obj)
{
Py_INCREF(obj);
return obj;
}
#endif

#ifdef Py_GIL_DISABLED
typedef struct {
PyThread_type_lock lock;
Expand Down