Commit ce8c66060c2d5fae2db629fb966eb7d5b93bf2e9

Martin Mitas 2020-04-20T19:32:13

Fix the build.

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.