From 26162993001d75c61dcb416c9d7722e0c0c73967 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sun, 21 Feb 2016 03:23:46 -0500 Subject: [PATCH] ref.h: add C++ guards MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- include/babeltrace/ref.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.34.1