summaryrefslogtreecommitdiff
blob: e6ba4409b88154cd328e3233ef20763413560264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: kdebindings/dcoppython/shell/marshaller.cpp
===================================================================
--- kdebindings/dcoppython/shell/marshaller.cpp	(revision 626831)
+++ kdebindings/dcoppython/shell/marshaller.cpp	(revision 626832)
@@ -24,6 +24,10 @@
 
 #include <kurl.h>
 
+#if PY_VERSION_HEX < 0x02050000
+typedef int Py_ssize_t;
+#endif
+
 namespace PythonDCOP {
 
 #include "marshal_funcs.h"
@@ -124,7 +128,7 @@
     if (!PyDict_Check(obj)) return false;
 
 
-    ssize_t c=0;
+    Py_ssize_t c=0;
     PyObject *key, *val;
     while (PyDict_Next(obj, &c, &key, &val)==1)
       if (!key_type.isMarshallable(key) ||