mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 11:58:10 +01:00
util: Make string-util.h C++-compatible
This commit is contained in:
parent
8251d639b2
commit
a5a47dab87
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* like strtok(3), but without state, and doesn't modify s. Return
|
||||
* value is indicated by pointer and length, not null terminator.
|
||||
*
|
||||
|
@ -57,4 +61,8 @@ int
|
|||
parse_boolean_term (void *ctx, const char *str,
|
||||
char **prefix_out, char **term_out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue