summaryrefslogtreecommitdiff
path: root/src/inlines.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-15 19:55:59 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-16 21:33:43 +0100
commit8c34fdc1b2d67ba440f5ad6cc5f81df4a3bcd937 (patch)
treed6ecf063869d208415041b0c6bd43073f08dcbbb /src/inlines.h
parent76b7e4241c840480beaef5ac6b711301f066251e (diff)
Declare all functions as extern "C"
Diffstat (limited to 'src/inlines.h')
-rw-r--r--src/inlines.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inlines.h b/src/inlines.h
index ae2117e..b323416 100644
--- a/src/inlines.h
+++ b/src/inlines.h
@@ -1,6 +1,10 @@
#ifndef CMARK_INLINES_H
#define CMARK_INLINES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
unsigned char *cmark_clean_url(cmark_chunk *url);
unsigned char *cmark_clean_title(cmark_chunk *title);
@@ -15,4 +19,8 @@ int cmark_parse_reference_inline(cmark_strbuf *input, cmark_reference_map *refma
#define clean_title cmark_clean_title
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif