From ddfb5f9abcc398843e48885bbc8b3e4439c14e7b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 18 Sep 2006 19:26:55 +0200 Subject: * python/generic.h: - deal with the api change and stay backward compatible with 2.4 --- python/generic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python') 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 #include +#if PYTHON_API_VERSION < 1013 +typedef int Py_ssize_t; +#endif + template struct CppPyObject : public PyObject { // We are only using CppPyObject and friends as dumb structs only, ie the -- cgit v1.2.3