summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2007-04-10 06:36:18 +0000
committerFederico Di Gregorio <fog@initd.org>2007-04-10 06:36:18 +0000
commite5829292cdecd56e883733aee552d6fe2121c6ac (patch)
treec7d26880bf00e83d28e65f90aaaf5a581a33796c /psycopg/python.h
parentfadd1a69386ae83ef316f3aee03b2867d8d9fe12 (diff)
downloadpsycopg2-e5829292cdecd56e883733aee552d6fe2121c6ac.tar.gz
Fixed both Python 2.5 and 64 bit problems.
Diffstat (limited to 'psycopg/python.h')
-rw-r--r--psycopg/python.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/psycopg/python.h b/psycopg/python.h
index 1c2b96d..84bacaa 100644
--- a/psycopg/python.h
+++ b/psycopg/python.h
@@ -22,12 +22,13 @@
#ifndef PSYCOPG_PYTHON_H
#define PSYCOPG_PYTHON_H 1
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
/* python < 2.2 does not have PyMemeberDef */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 2
-#define PyMemberDef memberlist
+#define PyMemberDef memberlist
#endif
/* PyObject_TypeCheck introduced in 2.2 */