From 55e3c6b17c34d0c00e544d1368180f07109b7189 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 24 Jun 2011 19:34:56 +0200 Subject: python: Don't declare Py_ssize_t for Python 2.6 Commit cd48c3f4e95597 added a Py_ssize_t typedef for Python < 2.7. But Py_ssize_t was added in Python 2.5. This makes the build fail for Python 2.6. Adjust the check to match Python < 2.5 to fix this. --- typewrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'typewrappers.h') diff --git a/typewrappers.h b/typewrappers.h index 70c15d9..87ea1e5 100644 --- a/typewrappers.h +++ b/typewrappers.h @@ -22,7 +22,7 @@ #endif /* Work around really old python. */ -#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 7 +#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5 typedef ssize_t Py_ssize_t; #endif -- cgit