From: Austin Clements Date: Tue, 29 Jul 2014 16:48:00 +0000 (-0400) Subject: util: Make string-util.h C++-compatible X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5a47dab8776cffc6ffbd77c51933831a34279f1;p=notmuch.git util: Make string-util.h C++-compatible --- diff --git a/util/string-util.h b/util/string-util.h index 8a3ad19e..ccad17f1 100644 --- a/util/string-util.h +++ b/util/string-util.h @@ -3,6 +3,10 @@ #include +#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