git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38892 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -2,6 +2,13 @@
#include <stdio.h>
#include <grass/gis.h>
#include <grass/raster.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
%}
%rename(my_def) def;