From: Jérémie Galarneau Date: Thu, 6 Feb 2014 19:13:56 +0000 (-0500) Subject: Add extern C to the health-check header X-Git-Tag: v2.5.0-rc1~220 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=2c1142ac6794479345e8f1c5d50ba1f306bb40cd Add extern C to the health-check header This makes it possible to include health.h in a C++ program. Acked-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/include/lttng/health.h b/include/lttng/health.h index 996092869..9a7a7fc09 100644 --- a/include/lttng/health.h +++ b/include/lttng/health.h @@ -19,6 +19,10 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef __cplusplus +extern "C" { +#endif + struct lttng_health; struct lttng_health_thread; @@ -124,4 +128,8 @@ int lttng_health_thread_state(const struct lttng_health_thread *thread); */ const char *lttng_health_thread_name(const struct lttng_health_thread *thread); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_HEALTH_H */