cmark

My personal build of CMark ✏️

Commit
d4047b95a4d8564ef6959a4fb63fc2e2e0708399
Parent
ba5e6434e2ab94d617637ea21abf840f97ba6593
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #22 from yangcha/master

snprintf is not implemented in Visual Studio 2013 or earlier. Use _snpri...

Diffstat

1 file changed, 4 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 4 4 0
diff --git 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 {