diff src/if_py_both.h @ 3734:956b1ed19282 v7.3.626

updated for version 7.3.626 Problem: Python interface doesn't build with Python 2.4 or older. Solution: Define Py_ssize_t. (Benjamin Bannier)
author Bram Moolenaar <bram@vim.org>
date Wed, 08 Aug 2012 16:05:07 +0200
parents e13f2f3568e1
children 5edf3c51aa93
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -12,6 +12,10 @@
  * Common code for if_python.c and if_python3.c.
  */
 
+#if PY_VERSION_HEX < 0x02050000
+typedef int Py_ssize_t;  /* Python 2.4 and earlier don't have this type. */
+#endif
+
 #ifdef FEAT_MBYTE
 # define ENC_OPT p_enc
 #else