From 888c6726f8f72991aed89445fe2988505ca06b92 Mon Sep 17 00:00:00 2001 From: Tom Everman Date: Mon, 21 Jun 2010 18:04:50 -0700 Subject: [PATCH] list: Add extern "C". --- lib/list.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/list.h b/lib/list.h index 845aab20b..59e3e86cb 100644 --- a/lib/list.h +++ b/lib/list.h @@ -21,6 +21,10 @@ #include #include #include "util.h" + +#ifdef __cplusplus +extern "C" { +#endif /* Doubly linked list head or element. */ struct list { @@ -66,5 +70,9 @@ bool list_is_empty(const struct list *); (NEXT = CONTAINER_OF((ITER)->MEMBER.next, STRUCT, MEMBER), \ &(ITER)->MEMBER != (LIST)); \ ITER = NEXT) + +#ifdef __cplusplus +} +#endif #endif /* list.h */ -- 2.47.0