diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-11 07:05:52 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-11 07:05:52 -0800 |
commit | f8d804300a134993a667ecf66063ee15accc6712 (patch) | |
tree | cf5eda651ef65b9f59c475d619716dd5e12d3985 | |
parent | 8226468b168b4b2be530e10a303a739cb401271f (diff) |
Added macro def needed for cpp.
-rw-r--r-- | src/cmark.h | 8 |
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 |