diff options
| author | David Bremner <david@tethera.net> | 2021-08-24 08:17:21 -0700 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-09-04 17:07:19 -0700 |
| commit | 48ad0e1ff350a35dd0af6a1892edf27aa5115927 (patch) | |
| tree | 5cbba0b6b831fdec6a07d765c6c3e3bfed2a1f3a /util | |
| parent | 200e164dc7acc3f19c6fe39164c472985e1ba384 (diff) | |
util/unicode: allow calling from C++
The omission of the 'extern "C"' machinery seems like an oversight.
Diffstat (limited to 'util')
| -rw-r--r-- | util/unicode-util.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdbool.h> #include <gmodule.h> +#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 |
