git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc434db
)
list: Add extern "C".
author
Tom Everman
<teverman@google.com>
Tue, 22 Jun 2010 01:04:50 +0000
(18:04 -0700)
committer
Jesse Gross
<jesse@nicira.com>
Tue, 22 Jun 2010 01:04:50 +0000
(18:04 -0700)
lib/list.h
patch
|
blob
|
history
diff --git
a/lib/list.h
b/lib/list.h
index
845aab2
..
59e3e86
100644
(file)
--- 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 */