From: David Bremner Date: Tue, 24 Aug 2021 15:17:21 +0000 (-0700) Subject: util/unicode: allow calling from C++ X-Git-Tag: archive/debian/0.34_rc0-1~53 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=48ad0e1ff350a35dd0af6a1892edf27aa5115927 util/unicode: allow calling from C++ The omission of the 'extern "C"' machinery seems like an oversight. --- 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