summaryrefslogtreecommitdiff
path: root/zebra/interface.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-03-26 16:35:52 +0100
committerGitHub <noreply@github.com>2019-03-26 16:35:52 +0100
commitaa69ac38f409cd190e97adee3caa70cf4e6274a1 (patch)
treecbabb7e795e13539b5fabef1a6d73b01e36e1879 /zebra/interface.h
parent860ff0589632f870e282ef2ad8ae9c8697053df9 (diff)
parent51e94aa7b167b5197f634eec11dc456994787993 (diff)
Merge pull request #4013 from manuhalo/zebra_c++_guards
zebra: add extern C guards to headers
Diffstat (limited to 'zebra/interface.h')
-rw-r--r--zebra/interface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/interface.h b/zebra/interface.h
index 1dbcf33fad..ce404e8253 100644
--- a/zebra/interface.h
+++ b/zebra/interface.h
@@ -28,6 +28,10 @@
#include "zebra/zebra_l2.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* For interface multicast configuration. */
#define IF_ZEBRA_MULTICAST_UNSPEC 0
#define IF_ZEBRA_MULTICAST_ON 1
@@ -432,4 +436,8 @@ extern int interface_list_proc(void);
extern int ifaddr_proc_ipv6(void);
#endif /* HAVE_PROC_NET_IF_INET6 */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_INTERFACE_H */