git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5e54297
)
compatibility to python 2.4.
author
Felix Domke
<tmbinc@elitedvb.net>
Sat, 26 Apr 2008 15:18:27 +0000
(15:18 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sat, 26 Apr 2008 15:18:27 +0000
(15:18 +0000)
lib/base/ebase.cpp
patch
|
blob
|
history
diff --git
a/lib/base/ebase.cpp
b/lib/base/ebase.cpp
index 038e5ad1dfda05ed0d5d3c674f71b9223996cc35..a79b1d4a8fef51dedd324ee2fbabbdb0abd6771f 100644
(file)
--- 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 (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)) {
PyObject *key, *val;
Py_ssize_t pos=0;
while (PyDict_Next(additional, &pos, &key, &val)) {