mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
Added Py3 compatibility macro for Py_TPFLAGS_HAVE_WEAKREFS
This commit is contained in:
parent
929d62053a
commit
9eae66e8cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user