md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit ba686ec3f1f16eac180eea57f9e93fec7f82eef8
parent c377f567af1524d6bd23bfc2e93a308c449fa2c1
Author: Martin Mitas <mity@morous.org>
Date:   Fri, 16 Dec 2016 10:16:17 +0100

render_html.c: Fix build with MSVC.

Diffstat:
Mmd2html/render_html.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/md2html/render_html.c b/md2html/render_html.c @@ -30,11 +30,20 @@ #include "entity.h" +#ifdef _MSC_VER + /* MSVC does not understand "inline" when building as pure C (not C++). + * However it understands "__inline" */ + #ifndef __cplusplus + #define inline __inline + #endif +#endif + #ifdef _WIN32 #define snprintf _snprintf #endif + typedef struct MD_RENDER_HTML_tag MD_RENDER_HTML; struct MD_RENDER_HTML_tag { void (*process_output)(const MD_CHAR*, MD_SIZE, void*);