diff options
Diffstat (limited to 'libopkg/list.h')
-rw-r--r-- | libopkg/list.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |