diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2016-03-12 11:13:14 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2016-03-12 11:13:14 +0100 |
commit | 0e216b4044f1cbbf30df4e378d51d91a0267e680 (patch) | |
tree | f92e1216c64d92cdc3c517756de70971e3dbd752 /src/html.c | |
parent | 8bff268ba84c67a1ac2761679457532439da482b (diff) |
Switch from "inline" to "CMARK_INLINE"
Newer MSVC versions support enough of C99 to be able to compile cmark
in plain C mode. Only the "inline" keyword is still unsupported.
We have to use "__inline" instead.
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ static void escape_html(cmark_strbuf *dest, const unsigned char *source, houdini_escape_html0(dest, source, length, 0); } -static inline void cr(cmark_strbuf *html) { +static CMARK_INLINE void cr(cmark_strbuf *html) { if (html->size && html->ptr[html->size - 1] != '\n') cmark_strbuf_putc(html, '\n'); } |