summaryrefslogtreecommitdiff
path: root/src/scanners.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanners.h')
-rw-r--r--src/scanners.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scanners.h b/src/scanners.h
index 243a970..3269112 100644
--- a/src/scanners.h
+++ b/src/scanners.h
@@ -1,5 +1,9 @@
#include "cmark.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int _scan_at(int (*scanner)(const unsigned char *), chunk *c, int offset);
int _scan_autolink_uri(const unsigned char *p);
int _scan_autolink_email(const unsigned char *p);
@@ -28,3 +32,7 @@ int _scan_entity(const unsigned char *p);
#define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n)
#define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n)
#define scan_entity(c, n) _scan_at(&_scan_entity, c, n)
+
+#ifdef __cplusplus
+}
+#endif