From: Tom Everman <teverman@google.com>
Date: Tue, 22 Jun 2010 01:04:50 +0000 (-0700)
Subject: list: Add extern "C".
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=888c6726f8f72991aed89445fe2988505ca06b92;p=sliver-openvswitch.git

list: Add extern "C".
---

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 <stdbool.h>
 #include <stddef.h>
 #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 */