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/dirs.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/dirs.h')
-rw-r--r-- | lib/dirs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dirs.h b/lib/dirs.h index 811a51fce..26af4bc41 100644 --- a/lib/dirs.h +++ b/lib/dirs.h @@ -17,6 +17,10 @@ #ifndef DIRS_H #define DIRS_H 1 +#ifdef __cplusplus +extern "C" { +#endif + const char *ovs_sysconfdir(void); /* /usr/local/etc */ const char *ovs_pkgdatadir(void); /* /usr/local/share/openvswitch */ const char *ovs_rundir(void); /* /usr/local/var/run/openvswitch */ @@ -24,4 +28,8 @@ const char *ovs_logdir(void); /* /usr/local/var/log/openvswitch */ const char *ovs_dbdir(void); /* /usr/local/etc/openvswitch */ const char *ovs_bindir(void); /* /usr/local/bin */ +#ifdef __cplusplus +} +#endif + #endif /* dirs.h */ |