X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/a22da88b9bb28d6061c43e2fcdcff3944b00eaa4..189dd45f9ed37cedbeea8a30f8dcd7c4dc751b3f:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index b0f933a..fe64aeb 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -176,11 +176,6 @@ PRIVATE_SYMBOLS; 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_META(ty, base, meta) do { \ @@ -190,6 +185,7 @@ PRIVATE_SYMBOLS; #define INITTYPE(ty, base) INITTYPE_META(ty, base, type) extern PyObject *home_module; +extern PyObject *modname; #define INSERT(name, ob) do { \ PyObject *_o = (PyObject *)(ob); \