diff options
author | Austin Clements <amdragon@MIT.EDU> | 2014-07-29 12:48:00 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-07-31 07:11:25 -0300 |
commit | a5a47dab8776cffc6ffbd77c51933831a34279f1 (patch) | |
tree | 889107bc49212ef7013614684428aabac7f221c0 /util | |
parent | 8251d639b2e4f38db097fad283e61fac93d644f7 (diff) |
util: Make string-util.h C++-compatible
Diffstat (limited to 'util')
-rw-r--r-- | util/string-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <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 |