summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-01-10 10:50:53 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-01-10 10:50:53 +0100
commitddaffbe78c06e580ca0d9cd334c7a28a4de5c40b (patch)
treebd501d1c632be0a473cacc7b6ca7ed18f708622a /Cython/Utility/ModuleSetupCode.c
parent7280479318572d6a0a6372c01c29badcae2da5de (diff)
downloadcython-ddaffbe78c06e580ca0d9cd334c7a28a4de5c40b.tar.gz
call PyBaseObject_Type.tp_new() in tp_new() functions instead of tp_alloc() directly
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index e3a84ee47..88a134ea9 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -133,7 +133,9 @@
#if PY_VERSION_HEX < 0x02060000
#define Py_TPFLAGS_HAVE_VERSION_TAG 0
#endif
-
+#if PY_VERSION_HEX < 0x02060000 && !defined(Py_TPFLAGS_IS_ABSTRACT)
+ #define Py_TPFLAGS_IS_ABSTRACT 0
+#endif
#if PY_VERSION_HEX < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE)
#define Py_TPFLAGS_HAVE_FINALIZE 0
#endif