diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/routing_nb.h | 8 | ||||
| -rw-r--r-- | lib/zebra.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/routing_nb.h b/lib/routing_nb.h index bdd12b262b..c185091a4b 100644 --- a/lib/routing_nb.h +++ b/lib/routing_nb.h @@ -1,6 +1,10 @@ #ifndef _FRR_ROUTING_NB_H_ #define _FRR_ROUTING_NB_H_ +#ifdef __cplusplus +extern "C" { +#endif + extern const struct frr_yang_module_info frr_routing_info; /* Mandatory callbacks. */ @@ -28,4 +32,8 @@ DECLARE_HOOK(routing_conf_event, (struct nb_cb_create_args *args), (args)); void routing_control_plane_protocols_register_vrf_dependency(void); +#ifdef __cplusplus +} +#endif + #endif /* _FRR_ROUTING_NB_H_ */ diff --git a/lib/zebra.h b/lib/zebra.h index 3b624117de..6a02dcb922 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -217,6 +217,10 @@ #define static_cast(l, r) (r) #endif +#ifdef __cplusplus +extern "C" { +#endif + #ifndef HAVE_STRLCAT size_t strlcat(char *__restrict dest, const char *__restrict src, size_t destsize); @@ -379,4 +383,8 @@ typedef uint32_t route_tag_t; #define ROUTE_TAG_MAX UINT32_MAX #define ROUTE_TAG_PRI PRIu32 +#ifdef __cplusplus +} +#endif + #endif /* _ZEBRA_H */ |
