From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Fri, 7 Feb 2014 03:54:26 +0000 (UTC) Subject: [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header In-Reply-To: <1391714036-14376-1-git-send-email-jeremie.galarneau@efficios.com> References: <1391714036-14376-1-git-send-email-jeremie.galarneau@efficios.com> Message-ID: <1517472420.20400.1391745266954.JavaMail.zimbra@efficios.com> Acked-by: Mathieu Desnoyers Thanks, Mathieu ----- Original Message ----- > From: "J?r?mie Galarneau" > To: lttng-dev at lists.lttng.org > Sent: Thursday, February 6, 2014 2:13:56 PM > Subject: [lttng-dev] [PATCH lttng-tools] Add extern C to the health-check header > > This makes it possible to include health.h in a C++ program. > > Signed-off-by: J?r?mie Galarneau > --- > include/lttng/health.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/lttng/health.h b/include/lttng/health.h > index 9960928..9a7a7fc 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 */ > -- > 1.8.5.2 > > > _______________________________________________ > lttng-dev mailing list > lttng-dev at lists.lttng.org > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com