diff options
author | Casey Barker <crbarker@google.com> | 2011-08-04 16:18:59 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-08-04 16:20:04 -0700 |
commit | 43d1478b1690ecd0ef6b63890bc13438c1914e47 (patch) | |
tree | 122b7ece40701cc950390e1a6dc3f56f83cb46f0 /lib/sset.h | |
parent | c71c6043a7617e6e6c2b8748550014f54476faa7 (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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |