Added Py3 compatibility macro for Py_TPFLAGS_HAVE_WEAKREFS

This commit is contained in:
Daniele Varrazzo 2011-01-03 16:56:26 +01:00
parent 929d62053a
commit 9eae66e8cf

View File

@ -97,6 +97,7 @@
#define PyString_FromFormat PyUnicode_FromFormat #define PyString_FromFormat PyUnicode_FromFormat
#define Py_TPFLAGS_HAVE_ITER 0L #define Py_TPFLAGS_HAVE_ITER 0L
#define Py_TPFLAGS_HAVE_RICHCOMPARE 0L #define Py_TPFLAGS_HAVE_RICHCOMPARE 0L
#define Py_TPFLAGS_HAVE_WEAKREFS 0L
#ifndef PyNumber_Int #ifndef PyNumber_Int
#define PyNumber_Int PyNumber_Long #define PyNumber_Int PyNumber_Long
#endif #endif