mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +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 <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
|
||||
|
|
Loading…
Reference in a new issue