Contents of /trunk/kdebindings/patches/kdebindings-3.5.6-python25.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 604 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 604 byte(s)
-import
1 | Index: dcoppython/shell/marshaller.cpp |
2 | =================================================================== |
3 | --- dcoppython/shell/marshaller.cpp (Revision 626831) |
4 | +++ dcoppython/shell/marshaller.cpp (Revision 626832) |
5 | @@ -24,6 +24,10 @@ |
6 | |
7 | #include <kurl.h> |
8 | |
9 | +#if PY_VERSION_HEX < 0x02050000 |
10 | +typedef int Py_ssize_t; |
11 | +#endif |
12 | + |
13 | namespace PythonDCOP { |
14 | |
15 | #include "marshal_funcs.h" |
16 | @@ -124,7 +128,7 @@ |
17 | if (!PyDict_Check(obj)) return false; |
18 | |
19 | |
20 | - ssize_t c=0; |
21 | + Py_ssize_t c=0; |
22 | PyObject *key, *val; |
23 | while (PyDict_Next(obj, &c, &key, &val)==1) |
24 | if (!key_type.isMarshallable(key) || |