diff --git a/asynctnt/iproto/tupleobj/tupleobj.h b/asynctnt/iproto/tupleobj/tupleobj.h index f8f7899..43a64a5 100644 --- a/asynctnt/iproto/tupleobj/tupleobj.h +++ b/asynctnt/iproto/tupleobj/tupleobj.h @@ -9,9 +9,9 @@ extern "C" { #endif #if defined(PYPY_VERSION) -# define Py_TRASHCAN_BEGIN(op, dealloc) -# define Py_TRASHCAN_END(op) -#endif +# define CPy_TRASHCAN_BEGIN(op, dealloc) +# define CPy_TRASHCAN_END(op) +#else #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8 # define CPy_TRASHCAN_BEGIN(op, dealloc) Py_TRASHCAN_BEGIN(op, dealloc) @@ -21,6 +21,8 @@ extern "C" { # define CPy_TRASHCAN_END(op) Py_TRASHCAN_SAFE_END(op) #endif +#endif + /* Largest ttuple to save on free list */ #define AtntTuple_MAXSAVESIZE 20