util.h: add a typedef for Py_ssize_t with Python 2.4
authorMatt Mackall <mpm@selenic.com>
Sun, 08 Apr 2012 22:17:51 -0500
changeset 16382 f542d291c4f2
parent 16381 64c8ae09162e
child 16383 f5dd179bfa4a
util.h: add a typedef for Py_ssize_t with Python 2.4
mercurial/util.h
--- a/mercurial/util.h	Sun Apr 08 12:38:26 2012 -0500
+++ b/mercurial/util.h	Sun Apr 08 22:17:51 2012 -0500
@@ -101,5 +101,9 @@
 
 #endif /* PY_VERSION_HEX */
 
+#if (PY_VERSION_HEX < 0x02050000)
+typedef int Py_ssize_t;
+#endif
+
 #endif /* _HG_UTIL_H_ */