Fix: C++ support to API header files
[babeltrace.git] / include / babeltrace / list.h
index feb8b5d88fa77e89d893cb5fd5917c45e4f4c143..ee5d84bd8dc55dcb55f93af31afc29f5f067b01b 100644 (file)
@@ -1,21 +1,22 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+/*
+ * Copyright (C) 2002 Free Software Foundation, Inc.
+ * This file is part of the GNU C Library.
+ * Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; only
+ * version 2.1 of the License.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
 
 #ifndef _BT_LIST_H
 #define _BT_LIST_H     1
@@ -24,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
@@ -167,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.024399 seconds and 4 git commands to generate.