projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8251d63
)
util: Make string-util.h C++-compatible
author
Austin Clements
<amdragon@MIT.EDU>
Tue, 29 Jul 2014 16:48:00 +0000
(12:48 -0400)
committer
David Bremner
<david@tethera.net>
Thu, 31 Jul 2014 10:11:25 +0000
(07:11 -0300)
util/string-util.h
patch
|
blob
|
history
diff --git
a/util/string-util.h
b/util/string-util.h
index 8a3ad19eae6e9808a319aec043e78089b792d41e..ccad17f1ced4f5f2a639d7891681438aaea09b56 100644
(file)
--- a/
util/string-util.h
+++ b/
util/string-util.h
@@
-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