list: Add extern "C".
authorTom Everman <teverman@google.com>
Tue, 22 Jun 2010 01:04:50 +0000 (18:04 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 22 Jun 2010 01:04:50 +0000 (18:04 -0700)
lib/list.h

index 845aab2..59e3e86 100644 (file)
 #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 */