diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-04-26 15:18:27 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-04-26 15:18:27 +0000 |
| commit | 2d99a849b913c564e510acb743192663e3a12c2d (patch) | |
| tree | 05da14c31d714714bfeecd06575913ba752b3933 /lib/base/ebase.cpp | |
| parent | 5e54297861cae8b00c8ff52865bcd1333ada61a2 (diff) | |
| download | enigma2-2d99a849b913c564e510acb743192663e3a12c2d.tar.gz enigma2-2d99a849b913c564e510acb743192663e3a12c2d.zip | |
compatibility to python 2.4.
Diffstat (limited to 'lib/base/ebase.cpp')
| -rw-r--r-- | lib/base/ebase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index 038e5ad1..a79b1d4a 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -187,6 +187,11 @@ int eMainloop::processOneEvent(unsigned int twisted_timeout, PyObject **res, ePy if (additional) { +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) + typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +#endif PyObject *key, *val; Py_ssize_t pos=0; while (PyDict_Next(additional, &pos, &key, &val)) { |
