summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2010-04-09 12:53:38 +0200
committerFederico Di Gregorio <fog@initd.org>2010-04-09 12:53:38 +0200
commitb8953cb3456d8ddf865815a83b3775aa175758b5 (patch)
treebcfebc36d5ff245bf5b9464e3a7dc09cc0f9c855 /psycopg/python.h
parent0a33ed01f556316e6480dba4d04198260568b4dd (diff)
downloadpsycopg2-b8953cb3456d8ddf865815a83b3775aa175758b5.tar.gz
Fixed Python 2.4 compatibility breakage
Diffstat (limited to 'psycopg/python.h')
-rw-r--r--psycopg/python.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h
index 6a02138..4d7333f 100644
--- a/psycopg/python.h
+++ b/psycopg/python.h
@@ -39,6 +39,7 @@
#define PY_SSIZE_T_MIN INT_MIN
#define PY_SSIZE_T_MAX INT_MAX
#define PY_FORMAT_SIZE_T ""
+ #define PyInt_FromSsize_t(x) PyInt_FromLong((x))
#define readbufferproc getreadbufferproc
#define writebufferproc getwritebufferproc