diff options
Diffstat (limited to 'psycopg/python.h')
-rw-r--r-- | psycopg/python.h | 1 |
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 |