X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/pyke/blobdiff_plain/4f3d0934b91624b7c3634a5e4d4ab4ddd2a175d3..d4a9e7e71495a1180062371cbac5353795d1fe47:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index 722d7ad..79034af 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -152,6 +152,11 @@ return (0); \ } +#if PY_VERSION_HEX < 0x02050000 /* Compatibility hack */ +# define ht_name name +# define ht_type type +#endif + #define root_pytype 0 #define type_pytype &PyType_Type #define INITTYPE(ty, base) do { \