From b4ac6eb92cce438632e44de80ab81c83198b2360 Mon Sep 17 00:00:00 2001 From: Changjiang Yang Date: Mon, 30 Mar 2015 23:33:11 -0400 Subject: snprintf is not implemented in Visual Studio 2013 or earlier. Use _snprintf instead. --- src/commonmark.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commonmark.c b/src/commonmark.c index 23faa7c..31fdcec 100644 --- a/src/commonmark.c +++ b/src/commonmark.c @@ -11,6 +11,10 @@ #include "utf8.h" #include "scanners.h" +#if defined(_MSC_VER) && (_MSC_VER <=1800) +#define snprintf _snprintf +#endif + // Functions to convert cmark_nodes to commonmark strings. struct render_state { -- cgit v1.2.3