Fix the build.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
diff --git a/src/md2html.c b/src/md2html.c
index eb6022c..f2f2eb6 100644
--- a/src/md2html.c
+++ b/src/md2html.c
@@ -36,9 +36,9 @@
/* Global options. */
static unsigned parser_flags = 0;
#ifndef MD4C_USE_ASCII
- static unsigned renderer_flags = MD_RENDER_FLAG_DEBUG | MD_RENDER_FLAG_SKIP_UTF8_BOM;
+ static unsigned renderer_flags = MD_HTML_FLAG_DEBUG | MD_HTML_FLAG_SKIP_UTF8_BOM;
#else
- static unsigned renderer_flags = MD_RENDER_FLAG_DEBUG;
+ static unsigned renderer_flags = MD_HTML_FLAG_DEBUG;
#endif
static int want_fullhtml = 0;
static int want_stat = 0;
diff --git a/src/md4c-html.c b/src/md4c-html.c
index 7a69b75..51097d1 100644
--- a/src/md4c-html.c
+++ b/src/md4c-html.c
@@ -557,7 +557,7 @@ md_html(const MD_CHAR* input, MD_SIZE input_size,
}
/* Consider skipping UTF-8 byte order mark (BOM). */
- if(renderer_flags & MD_RENDER_FLAG_SKIP_UTF8_BOM && sizeof(MD_CHAR) == 1) {
+ if(renderer_flags & MD_HTML_FLAG_SKIP_UTF8_BOM && sizeof(MD_CHAR) == 1) {
static const MD_CHAR bom[3] = { 0xef, 0xbb, 0xbf };
if(input_size >= sizeof(bom) && memcmp(input, bom, sizeof(bom)) == 0) {
input += sizeof(bom);
diff --git a/src/md4c-html.h b/src/md4c-html.h
index d5bf084..000c721 100644
--- a/src/md4c-html.h
+++ b/src/md4c-html.h
@@ -34,9 +34,9 @@
/* If set, debug output from md_parse() is sent to stderr. */
-#define MD_RENDER_FLAG_DEBUG 0x0001
-#define MD_RENDER_FLAG_VERBATIM_ENTITIES 0x0002
-#define MD_RENDER_FLAG_SKIP_UTF8_BOM 0x0004
+#define MD_HTML_FLAG_DEBUG 0x0001
+#define MD_HTML_FLAG_VERBATIM_ENTITIES 0x0002
+#define MD_HTML_FLAG_SKIP_UTF8_BOM 0x0004
/* Render Markdown into HTML.