X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=util%2Ftalloc-extra.h;h=e2e617342a92544191ee9aca06d157494e76b96d;hb=1f82039e0da1adf078559ef9bf80e2b47858a607;hp=eac5dc0534716a73c3d3e98d8158783f45cb5144;hpb=045f0e455ac94e2393d0d729c9bbdf3459a4860f;p=notmuch diff --git a/util/talloc-extra.h b/util/talloc-extra.h index eac5dc05..e2e61734 100644 --- a/util/talloc-extra.h +++ b/util/talloc-extra.h @@ -3,6 +3,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* Like talloc_strndup, but take an extra parameter for the internal talloc * name (for debugging) */ @@ -15,4 +19,8 @@ talloc_strndup_named_const (void *ctx, const char *str, #define talloc_strndup_debug(ctx, str, len) talloc_strndup_named_const (ctx, str, len, __location__) +#ifdef __cplusplus +} +#endif + #endif