]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
python: Don't declare Py_ssize_t for Python 2.6
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 24 Jun 2011 17:34:56 +0000 (19:34 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 24 Jun 2011 17:34:56 +0000 (19:34 +0200)
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.

python/typewrappers.h

index 70c15d9f9d529234cb4c211e760d9d195349a751..87ea1e5cedab39d83908f6b77ab35a61bd760221 100644 (file)
@@ -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