From 48ad0e1ff350a35dd0af6a1892edf27aa5115927 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 24 Aug 2021 08:17:21 -0700 Subject: [PATCH] util/unicode: allow calling from C++ The omission of the 'extern "C"' machinery seems like an oversight. --- util/unicode-util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/unicode-util.h b/util/unicode-util.h index 32d1e6ef..1bb9336a 100644 --- a/util/unicode-util.h +++ b/util/unicode-util.h @@ -4,9 +4,16 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* The utf8 encoded string would tokenize as a single word, according * to xapian. */ bool unicode_word_utf8 (const char *str); typedef gunichar notmuch_unichar; +#ifdef __cplusplus +} +#endif #endif