aboutsummaryrefslogtreecommitdiff
path: root/lib/sset.h
diff options
context:
space:
mode:
authorCasey Barker <crbarker@google.com>2011-08-04 16:18:59 -0700
committerBen Pfaff <blp@nicira.com>2011-08-04 16:20:04 -0700
commit43d1478b1690ecd0ef6b63890bc13438c1914e47 (patch)
tree122b7ece40701cc950390e1a6dc3f56f83cb46f0 /lib/sset.h
parentc71c6043a7617e6e6c2b8748550014f54476faa7 (diff)
lib: Adapt headers for use in C++.
This commit makes several library headers suitable for inclusion in C++. It adds [extern "C"] guards and makes minor changes to fix casting and keyword issues.
Diffstat (limited to 'lib/sset.h')
-rw-r--r--lib/sset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sset.h b/lib/sset.h
index 88100673..a739fce0 100644
--- a/lib/sset.h
+++ b/lib/sset.h
@@ -19,6 +19,10 @@
#include "hmap.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct sset_node {
struct hmap_node hmap_node;
char name[1];
@@ -85,4 +89,8 @@ bool sset_equals(const struct sset *, const struct sset *);
SSET_NAME_FROM_HMAP_NODE( \
hmap_next(&(SSET)->map, &SSET_NODE_FROM_NAME(NAME)->hmap_node))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* sset.h */