diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-04 09:37:30 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-04 09:38:31 -0800 |
commit | fbfffdbbf988e33ad96430f0ce9bebde8210c9df (patch) | |
tree | 24321e9d948e1f87617b0c62b75fe3627eee8798 /lib/shash.h | |
parent | bb60fa749da7f725f2f000a90ea317ad4b1383d2 (diff) | |
download | openvswitch-fbfffdbbf988e33ad96430f0ce9bebde8210c9df.tar.gz |
Add extern "C" { ... } to some header files to support usage from C++.
From partner.
Diffstat (limited to 'lib/shash.h')
-rw-r--r-- | lib/shash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/shash.h b/lib/shash.h index 5794a20f4..471918b27 100644 --- a/lib/shash.h +++ b/lib/shash.h @@ -19,6 +19,10 @@ #include "hmap.h" +#ifdef __cplusplus +extern "C" { +#endif + struct shash_node { struct hmap_node node; char *name; @@ -48,4 +52,8 @@ struct shash_node *shash_find(const struct shash *, const char *); void *shash_find_data(const struct shash *, const char *); struct shash_node *shash_first(const struct shash *); +#ifdef __cplusplus +} +#endif + #endif /* shash.h */ |