Skip to content

Commit

Permalink
updated for version 7.3.626
Browse files Browse the repository at this point in the history
Problem:    Python interface doesn't build with Python 2.4 or older.
Solution:   Define Py_ssize_t. (Benjamin Bannier)
  • Loading branch information
brammool committed Aug 8, 2012
1 parent ba6ba36 commit c1a995d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/if_py_both.h
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
626,
/**/
625,
/**/
Expand Down

0 comments on commit c1a995d

Please sign in to comment.