diff --git a/asynctnt/iproto/tupleobj/tupleobj.h b/asynctnt/iproto/tupleobj/tupleobj.h index 80417ce..f8f7899 100644 --- a/asynctnt/iproto/tupleobj/tupleobj.h +++ b/asynctnt/iproto/tupleobj/tupleobj.h @@ -8,6 +8,11 @@ extern "C" { #endif +#if defined(PYPY_VERSION) +# define Py_TRASHCAN_BEGIN(op, dealloc) +# define Py_TRASHCAN_END(op) +#endif + #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8 # define CPy_TRASHCAN_BEGIN(op, dealloc) Py_TRASHCAN_BEGIN(op, dealloc) # define CPy_TRASHCAN_END(op) Py_TRASHCAN_END