All,
Please find attached a small patch to fix compilation with python 2.4 on
windows where ssize_t is missing.
I'm not sure it's the best way to do this though: defining ssize_t
somewhere else might be cleaner.
Happy new year!
-sbi
Index: libxslt.c
===================================================================
--- libxslt.c (revision 1452)
+++ libxslt.c (working copy)
@@ -667,7 +667,11 @@
PyObject *pyobj_transformCtxt;
const char **params = NULL;
int len = 0, i, j;
+#ifdef HAVE_SSIZE_T
ssize_t ppos = 0;
+#else
+ size_t ppos = 0;
+#endif
PyObject *name;
PyObject *value;
@@ -742,7 +746,11 @@
PyObject *pyobj_params;
const char **params = NULL;
int len = 0, i, j, params_size;
+#ifdef HAVE_SSIZE_T
ssize_t ppos = 0;
+#else
+ size_t ppos = 0;
+#endif
PyObject *name;
PyObject *value;
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml