Subject: | win32 mingw/gcc doesn't have sprintf_s, so use defined(_MSC_VER) |
win32 mingw/gcc doesn't have sprintf_s, so use defined(_MSC_VER)
like
#if ( (defined(_WIN32) || defined(WIN32) ) && ( defined(_MSC_VER) ) )
#define snprintf sprintf_s
#endif
otherwise strawberryperl folks will get
yajl\yajl_tree.o:yajl_tree.c:(.text+0x46): undefined reference to
`sprintf_s'
...