pyxl: fix build of python xl binding for python < 2.5

The python C API introduced Py_ssize_t in version 2.5. Prior to this
int's were used instead. Fix the build by way of a heinous preprocessor
macro.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
Gianni Tedesco committed 2010-10-14 12:46:29 +01:00
1 parent 43e2c25aec
commit 92d4a8cf45
1 file changed
+4
+4
View File
@@ -51,6 +51,10 @@
#define CLS "ctx"
#if PY_MAJOR_VERSION < 2 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5)
#define Py_ssize_t int
#endif
static PyObject *xl_error_obj;
int genwrap__obj_init(PyObject *self, PyObject *args, PyObject *kwds)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.