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_7b1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41d222b5f85d81c3cb7c33be284b9b5507463cb2;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 a8563a51d1..594bcfa5ff 100644 --- a/CHANGES +++ b/CHANGES @@ -189,6 +189,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