X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Flist.h;h=ee5d84bd8dc55dcb55f93af31afc29f5f067b01b;hb=1b168db0ed3a64fb3513d6cacff1d0d96a7ae35d;hp=43a821671d89ab9fe41dc35d5623017d3129d598;hpb=eb31c5e6bbfbb02093ff45616446c26730898c05;p=babeltrace.git diff --git a/include/babeltrace/list.h b/include/babeltrace/list.h index 43a82167..ee5d84bd 100644 --- a/include/babeltrace/list.h +++ b/include/babeltrace/list.h @@ -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 */