summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index fa1639e..d14b38e 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -6,6 +6,10 @@
#include "config.h"
#include "cmark_export.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
unsigned char *ptr;
int asize, size;
@@ -164,4 +168,8 @@ void cmark_strbuf_unescape(cmark_strbuf *s);
#define strbuf_unescape cmark_strbuf_unescape
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif