summaryrefslogtreecommitdiff
path: root/src/utf8.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/utf8.h
parent76b7e4241c840480beaef5ac6b711301f066251e (diff)
Declare all functions as extern "C"
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utf8.h b/src/utf8.h
index ecefa4e..4114063 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -4,10 +4,18 @@
#include <stdint.h>
#include "buffer.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void utf8proc_case_fold(cmark_strbuf *dest, const uint8_t *str, int len);
void utf8proc_encode_char(int32_t uc, cmark_strbuf *buf);
int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst);
int utf8proc_charlen(const uint8_t *str, int str_len);
void utf8proc_detab(cmark_strbuf *dest, const uint8_t *line, size_t size);
+#ifdef __cplusplus
+}
+#endif
+
#endif