From 8c34fdc1b2d67ba440f5ad6cc5f81df4a3bcd937 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 15 Nov 2014 19:55:59 +0100 Subject: Declare all functions as extern "C" --- src/utf8.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utf8.h') 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 #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 -- cgit v1.2.3