[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] patch for python 2.4 support on windows
- From: "Bidoul, Stephane" <Stephane Bidoul softwareag com>
- To: <xml gnome org>
- Subject: [xml] patch for python 2.4 support on windows
- Date: Fri, 4 Jan 2008 18:16:52 +0100
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;
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]