mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Py_TYPE defined as it is in Python 2.6.
This commit is contained in:
parent
b9e96dbbd2
commit
df05ea7a33
|
@ -54,7 +54,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef Py_TYPE
|
||||
#define Py_TYPE(o) ((o)->ob_type)
|
||||
#define Py_TYPE(o) (((PyObject*)(o))->ob_type)
|
||||
#endif
|
||||
|
||||
/* FORMAT_CODE_PY_SSIZE_T is for Py_ssize_t: */
|
||||
|
|
Loading…
Reference in New Issue
Block a user