Commit a930e46fc6ffff3c7655d1ee200bb4777cb15007

Martin Mitas 2016-11-24T15:04:47

Fix build with MSVC.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/md2html/md2html.c b/md2html/md2html.c
index ddbcd7b..f8d955e 100644
--- a/md2html/md2html.c
+++ b/md2html/md2html.c
@@ -33,6 +33,10 @@
 #include "cmdline.h"
 #include "entity.h"
 
+#ifdef _WIN32
+    #define snprintf _snprintf
+#endif
+
 
 /* Global options. */
 static unsigned renderer_flags = 0;