callsites: fix memory leak
[babeltrace.git] / include / babeltrace / list.h
index 43a821671d89ab9fe41dc35d5623017d3129d598..ee5d84bd8dc55dcb55f93af31afc29f5f067b01b 100644 (file)
@@ -25,6 +25,9 @@
    found in the Linux kernel headers to enable people familiar with
    the latter find their way in these sources as well.  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* Basic type for the double-link list.  */
 struct bt_list_head
@@ -168,4 +171,8 @@ static inline void bt_list_replace_init(struct bt_list_head *old,
        BT_INIT_LIST_HEAD(old);
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _BT_LIST_H */
This page took 0.022984 seconds and 4 git commands to generate.