diff options
Diffstat (limited to 'python/progress.h')
| -rw-r--r-- | python/progress.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h index 29243bfc..659eb113 100644 --- a/python/progress.h +++ b/python/progress.h @@ -15,6 +15,12 @@ #include <apt-pkg/cdrom.h> #include <Python.h> +/* Python 2.4 compatibility */ +#if (PY_VERSION_HEX < 0x02050000) +typedef int Py_ssize_t; +#endif + + /* PyCbObj_BEGIN_ALLOW_THREADS and PyCbObj_END_ALLOW_THREADS are sligthly * modified versions of Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. * Instead of storing the thread state in a function-local variable these |
