Fixed Python 2.4 compatibility breakage

This commit is contained in:
Federico Di Gregorio 2010-04-09 12:53:38 +02:00
parent 0a33ed01f5
commit b8953cb345

View File

@ -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