From 9eae66e8cf427484b9770f659a993389291b3b07 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 3 Jan 2011 16:56:26 +0100 Subject: [PATCH] Added Py3 compatibility macro for Py_TPFLAGS_HAVE_WEAKREFS --- psycopg/python.h | 1 + 1 file changed, 1 insertion(+) diff --git a/psycopg/python.h b/psycopg/python.h index 1e46cc51..25dbd31b 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -97,6 +97,7 @@ #define PyString_FromFormat PyUnicode_FromFormat #define Py_TPFLAGS_HAVE_ITER 0L #define Py_TPFLAGS_HAVE_RICHCOMPARE 0L +#define Py_TPFLAGS_HAVE_WEAKREFS 0L #ifndef PyNumber_Int #define PyNumber_Int PyNumber_Long #endif