From df05ea7a33adfee48a4f6f494b36d542befca684 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 8 Nov 2010 00:24:58 +0000 Subject: [PATCH] Py_TYPE defined as it is in Python 2.6. --- psycopg/python.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/python.h b/psycopg/python.h index 9567c965..f4256d8d 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -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: */