From fed9b245150a7faa630f7615302c472b7c68ff3e Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Fri, 29 Nov 2013 14:19:14 -0500 Subject: libopkg: ensure symbol name mangling for C++ Users who use C++ code for theirs application have always to include external C functions with a 'extern "C" { }' assignment. We can take that need from the user by putting thees assignments into the public header files. Signed-off-by: Carsten Schoenert Signed-off-by: Paul Barker --- (limited to 'libopkg/list.h') diff --git a/libopkg/list.h b/libopkg/list.h index c1325db..250eebb 100644 --- a/libopkg/list.h +++ b/libopkg/list.h @@ -20,6 +20,10 @@ #ifndef _LINUX_LIST_H #define _LINUX_LIST_H +#ifdef __cplusplus +extern "C" { +#endif + struct list_head { struct list_head *next, *prev; }; @@ -301,4 +305,8 @@ static inline void list_splice_init(struct list_head *list, &pos->member != (head); \ pos = n, n = list_entry(n->member.next, typeof(*n), member)) +#ifdef __cplusplus +} +#endif + #endif -- cgit v0.9.1