--- JSON-XS/XS.xs 2007/04/06 20:37:22 1.25 +++ JSON-XS/XS.xs 2007/04/06 21:17:09 1.26 @@ -5,6 +5,11 @@ #include "assert.h" #include "string.h" #include "stdlib.h" +#include "stdio.h" + +#if defined(__BORLANDC__) || defined(_MSC_VER) +# define snprintf _snprintf // C compilers have this in stdio.h +#endif #define F_ASCII 0x00000001UL #define F_UTF8 0x00000002UL