Fix python 2.4 binding build

This commit is contained in:
Jerome Schneider 2009-04-17 14:12:43 +00:00
parent dac53715ea
commit 827d79af7c
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@
#include "../../lasso/debug.h"
#include "../../lasso/utils.h"
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif
GQuark lasso_wrapper_key;
PyMODINIT_FUNC init_lasso(void);