summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-11 07:05:52 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-11 07:05:52 -0800
commitf8d804300a134993a667ecf66063ee15accc6712 (patch)
treecf5eda651ef65b9f59c475d619716dd5e12d3985 /src
parent8226468b168b4b2be530e10a303a739cb401271f (diff)
Added macro def needed for cpp.
Diffstat (limited to 'src')
-rw-r--r--src/cmark.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 419ef15..1fb8668 100644
--- 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