Skip to content

Commit f3aae59

Browse files
committed
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)
1 parent ea30477 commit f3aae59

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/if_py_both.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
* Common code for if_python.c and if_python3.c.
1313
*/
1414

15+
#if PY_VERSION_HEX < 0x02050000
16+
typedef int Py_ssize_t; /* Python 2.4 and earlier don't have this type. */
17+
#endif
18+
1519
#ifdef FEAT_MBYTE
1620
# define ENC_OPT p_enc
1721
#else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
626,
717719
/**/
718720
625,
719721
/**/

0 commit comments

Comments
 (0)