[GRASS-dev] Re: [GRASS-SVN] r38872 - grass/trunk

Hamish hamish_b at yahoo.com
Thu Aug 27 22:06:16 EDT 2009


Glynn wrote:
> Try this:
> 
> --- swig/include/python/common.i    (revision 38884)
> +++ swig/include/python/common.i    (working
> copy)
> @@ -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;


yes, with that patch a fresh build completes successfully.


thanks,
Hamish



      



More information about the grass-dev mailing list