mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
util/unicode: allow calling from C++
The omission of the 'extern "C"' machinery seems like an oversight.
This commit is contained in:
parent
200e164dc7
commit
48ad0e1ff3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue