diff options
| author | David Bremner <david@tethera.net> | 2019-03-02 16:26:06 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-03-11 22:26:50 -0300 |
| commit | 152b6cac5d496aaad816d20d7b2286e9ac73207d (patch) | |
| tree | b3796f575398e2588d102b327572265e342afd47 /util/error_util.h | |
| parent | 9f7e851263b96acacc9ea542e9f5d837563fea05 (diff) | |
util: make remaining headers includable from C++
libnotmuch_util.a is supposed to be usable from the library and the
CLI, but much the library is compiled as C++. Add in appropriate
wrapping to prevent symbol mangling. These wrappers already existed in
string-util.h; it seems better to be consistent.
Diffstat (limited to 'util/error_util.h')
| -rw-r--r-- | util/error_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/error_util.h b/util/error_util.h index 4bb338a2..aa3b77c4 100644 --- a/util/error_util.h +++ b/util/error_util.h @@ -25,6 +25,10 @@ #include "function-attributes.h" +#ifdef __cplusplus +extern "C" { +#endif + /* There's no point in continuing when we've detected that we've done * something wrong internally (as opposed to the user passing in a * bogus value). @@ -44,4 +48,7 @@ _internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2) NORETURN_ATTRI _internal_error (format " (%s).\n", \ ##__VA_ARGS__, __location__) +#ifdef __cplusplus +} +#endif #endif |
