From: Philippe Proulx Date: Sun, 21 Feb 2016 08:23:46 +0000 (-0500) Subject: ref.h: add C++ guards X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=26162993001d75c61dcb416c9d7722e0c0c73967;p=deliverable%2Fbabeltrace.git ref.h: add C++ guards Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/ref.h b/include/babeltrace/ref.h index 04fd8512c..63cf2f020 100644 --- a/include/babeltrace/ref.h +++ b/include/babeltrace/ref.h @@ -27,6 +27,10 @@ * SOFTWARE. */ +#ifdef __cplusplus +extern "C" { +#endif + /* * BT_PUT: calls bt_put() with a variable, then sets this variable to NULL. * @@ -97,4 +101,8 @@ void *bt_get(void *obj); */ void bt_put(void *obj); +#ifdef __cplusplus +} +#endif + #endif /* BABELTRACE_REF_H */