cmark

My personal build of CMark ✏️

Commit
f8d804300a134993a667ecf66063ee15accc6712
Parent
8226468b168b4b2be530e10a303a739cb401271f
Author
John MacFarlane <jgm@berkeley.edu>
Date

Added macro def needed for cpp.

Diffstat

1 file changed, 8 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/cmark.h 8 8 0
diff --git a/src/cmark.h b/src/cmark.h
@@ -7,6 +7,10 @@
 #include "chunk.h"
 #include "references.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define VERSION "0.1"
 #define CODE_INDENT 4
 
@@ -114,4 +118,8 @@ void cmark_free_nodes(node_block *e);
 void cmark_debug_print(node_block *root);
 void cmark_render_html(strbuf *html, node_block *root);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif