Index: dcoppython/shell/marshaller.cpp =================================================================== --- dcoppython/shell/marshaller.cpp (Revision 626831) +++ dcoppython/shell/marshaller.cpp (Revision 626832) @@ -24,6 +24,10 @@ #include +#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) ||