diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-18 19:26:55 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-18 19:26:55 +0200 |
| commit | ddfb5f9abcc398843e48885bbc8b3e4439c14e7b (patch) | |
| tree | 7f83b002dcbcd146da090992f736f11abf4273af /python | |
| parent | 0d7ffbdfcecfde690648da1ff9342d3bd736e71f (diff) | |
| download | python-apt-ddfb5f9abcc398843e48885bbc8b3e4439c14e7b.tar.gz | |
* python/generic.h:
- deal with the api change and stay backward compatible with 2.4
Diffstat (limited to 'python')
| -rw-r--r-- | python/generic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h index a808e28d..b47ed1a2 100644 --- a/python/generic.h +++ b/python/generic.h @@ -31,6 +31,10 @@ #include <string> #include <new> +#if PYTHON_API_VERSION < 1013 +typedef int Py_ssize_t; +#endif + template <class T> struct CppPyObject : public PyObject { // We are only using CppPyObject and friends as dumb structs only, ie the |
