From: Mike Bayer Date: Sun, 30 Jan 2011 20:08:41 +0000 (-0500) Subject: - Added some defs to the resultproxy.c extension so that X-Git-Tag: rel_0_6_7~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d3b671349f047bc47046d097deebf6cda819119;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Added some defs to the resultproxy.c extension so that the extension compiles and runs on Python 2.4. [ticket:2023] --- 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