diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2017-11-30 11:11:50 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-12-01 13:22:18 -0800 |
commit | 9131abe2236b4ed1685e76db9921115bcd8f05e3 (patch) | |
tree | 574d0cd596930a0eeee97c24a8ee7ab1add2af1e /lib/smap.h | |
parent | 936cca17923a75968844b43dba22c6e7421dda4b (diff) | |
download | openvswitch-9131abe2236b4ed1685e76db9921115bcd8f05e3.tar.gz |
lib, ovsdb: Adapt headers for C++ usage
This patch adds 'extern "C"' in a couple of header files so that
they can be compiled with C++ compilers.
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/smap.h')
-rw-r--r-- | lib/smap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/smap.h b/lib/smap.h index edf591cf1..838e2e4bb 100644 --- a/lib/smap.h +++ b/lib/smap.h @@ -19,6 +19,10 @@ #include "hash.h" #include "openvswitch/hmap.h" +#ifdef __cplusplus +extern "C" { +#endif + struct json; struct uuid; @@ -113,4 +117,8 @@ struct json *smap_to_json(const struct smap *); bool smap_equal(const struct smap *, const struct smap *); +#ifdef __cplusplus +} +#endif + #endif /* smap.h */ |