util/unicode: allow calling from C++

The omission of the 'extern "C"' machinery seems like an oversight.
This commit is contained in:
David Bremner 2021-08-24 08:17:21 -07:00
parent 200e164dc7
commit 48ad0e1ff3

View file

@ -4,9 +4,16 @@
#include <stdbool.h> #include <stdbool.h>
#include <gmodule.h> #include <gmodule.h>
#ifdef __cplusplus
extern "C" {
#endif
/* The utf8 encoded string would tokenize as a single word, according /* The utf8 encoded string would tokenize as a single word, according
* to xapian. */ * to xapian. */
bool unicode_word_utf8 (const char *str); bool unicode_word_utf8 (const char *str);
typedef gunichar notmuch_unichar; typedef gunichar notmuch_unichar;
#ifdef __cplusplus
}
#endif
#endif #endif