changeset 16382:f542d291c4f2

util.h: add a typedef for Py_ssize_t with Python 2.4
author Matt Mackall <mpm@selenic.com>
date Sun, 08 Apr 2012 22:17:51 -0500
parents 64c8ae09162e
children f5dd179bfa4a
files mercurial/util.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_ */