Problems with snprintf in visual studio 2015

700 views
Skip to first unread message

webus...@gmail.com

unread,
Jul 28, 2015, 9:37:51 AM7/28/15
to Jansson users
It turns out that vs 2015 stdio has sprintf defined


As suggested in the post above. I tried the two following steps and both of them still give me errors:

Step 1: 

#if _MSC_VER>=1900
#  define STDC99
#endif

Step 2:

remove the line: #define snprintf _snprintf in jansson_private.h

Any suggestions on what I can do?

Regards,

WU

Petri Lehtinen

unread,
Sep 1, 2015, 2:37:06 PM9/1/15
to jansso...@googlegroups.com
This has now been fixed in the GitHub repo. See
https://github.com/akheron/jansson/pull/252.

Petri
signature.asc
Reply all
Reply to author
Forward
0 new messages