summaryrefslogtreecommitdiff
path: root/python/generic.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-18 19:40:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-18 19:40:46 +0200
commit5b7efad60b731077902cb03bcffd207b6c89e2e4 (patch)
treea1ef736bc912c41a11e911279677671bf5df43b6 /python/generic.h
parenta9dd5cc00d723bedc06a0d17c7ede97fb66c14fd (diff)
parentddfb5f9abcc398843e48885bbc8b3e4439c14e7b (diff)
downloadpython-apt-5b7efad60b731077902cb03bcffd207b6c89e2e4.tar.gz
* merged with python-apt--mvo
Diffstat (limited to 'python/generic.h')
-rw-r--r--python/generic.h4
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