From 5e2444690bd0d2003e7d283f890b33e11ddd371f Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 7 Feb 2019 20:10:31 -0200 Subject: lib: add extern "C" {} blocks to all libfrr headers These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter Signed-off-by: Renato Westphal --- lib/libospf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/libospf.h') diff --git a/lib/libospf.h b/lib/libospf.h index 45aedb6a7d..d2bb29d80e 100644 --- a/lib/libospf.h +++ b/lib/libospf.h @@ -22,6 +22,10 @@ #ifndef _LIBOSPFD_H #define _LIBOSPFD_H +#ifdef __cplusplus +extern "C" { +#endif + /* IP precedence. */ #ifndef IPTOS_PREC_INTERNETCONTROL #define IPTOS_PREC_INTERNETCONTROL 0xC0 @@ -94,4 +98,8 @@ #define OSPF_LSA_MAXAGE_CHECK_INTERVAL 30 #define OSPF_LSA_MAXAGE_REMOVE_DELAY_DEFAULT 60 +#ifdef __cplusplus +} +#endif + #endif /* _LIBOSPFD_H */ -- cgit v1.2.3