--- JSON-XS/XS.xs 2007/06/12 01:27:02 1.40 +++ JSON-XS/XS.xs 2007/06/23 22:53:16 1.41 @@ -11,6 +11,12 @@ # define snprintf _snprintf // C compilers have this in stdio.h #endif +// some old perls do not have this, try to make it work, no +// guarentees, though. +#ifndef UTF8_MAXBYTES +# define UTF8_MAXBYTES 13 +#endif + #define F_ASCII 0x00000001UL #define F_LATIN1 0x00000002UL #define F_UTF8 0x00000004UL