]> git.notmuchmail.org Git - notmuch/commitdiff
util: Make string-util.h C++-compatible
authorAustin Clements <amdragon@MIT.EDU>
Tue, 29 Jul 2014 16:48:00 +0000 (12:48 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 31 Jul 2014 10:11:25 +0000 (07:11 -0300)
util/string-util.h

index 8a3ad19eae6e9808a319aec043e78089b792d41e..ccad17f1ced4f5f2a639d7891681438aaea09b56 100644 (file)
@@ -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