From 7d3b671349f047bc47046d097deebf6cda819119 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 30 Jan 2011 15:08:41 -0500 Subject: [PATCH] - Added some defs to the resultproxy.c extension so that the extension compiles and runs on Python 2.4. [ticket:2023] --- CHANGES | 4 ++++ lib/sqlalchemy/cextension/resultproxy.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 15ec2f95de..849ec82045 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,10 @@ CHANGES - Column.copy(), as used in table.tometadata(), copies the 'doc' attribute. [ticket:2028] + - Added some defs to the resultproxy.c extension so that + the extension compiles and runs on Python 2.4. + [ticket:2023] + 0.6.6 ===== - orm diff --git a/lib/sqlalchemy/cextension/resultproxy.c b/lib/sqlalchemy/cextension/resultproxy.c index 93471073bc..5af94771b7 100644 --- a/lib/sqlalchemy/cextension/resultproxy.c +++ b/lib/sqlalchemy/cextension/resultproxy.c @@ -13,6 +13,8 @@ typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN typedef Py_ssize_t (*lenfunc)(PyObject *); +#define PyInt_FromSsize_t(x) PyInt_FromLong(x) +typedef intargfunc ssizeargfunc; #endif -- 2.47.3