summaryrefslogtreecommitdiff
path: root/src/references.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/references.h')
-rw-r--r--src/references.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/references.h b/src/references.h
index 2972576..9f423ab 100644
--- a/src/references.h
+++ b/src/references.h
@@ -4,6 +4,10 @@
#include "chunk.h"
#include "ast.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
cmark_reference_map *cmark_reference_map_new(void);
void cmark_reference_map_free(cmark_reference_map *map);
cmark_reference* cmark_reference_lookup(cmark_reference_map *map, cmark_chunk *label);
@@ -18,4 +22,8 @@ extern void cmark_reference_create(cmark_reference_map *map, cmark_chunk *label,
#define reference_create cmark_reference_create
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif