From: Stephen Hemminger Date: Thu, 25 Jun 2020 20:32:08 +0000 (-0700) Subject: rib: add C++ include guard X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=b2a0b9f0447a64dd03aa210c49d70572077555ea rib: add C++ include guard All include files should be safe from C++ Fixes: 5a5793a5ffa2 ("rib: add RIB library") Fixes: f7e861e21c46 ("rib: support IPv6") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Acked-by: Vladimir Medvedkin --- diff --git a/lib/librte_rib/rte_rib.h b/lib/librte_rib/rte_rib.h index a9bb42f6fa..f80752e5bd 100644 --- a/lib/librte_rib/rte_rib.h +++ b/lib/librte_rib/rte_rib.h @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * rte_rib_get_nxt() flags */ @@ -282,4 +286,8 @@ __rte_experimental void rte_rib_free(struct rte_rib *rib); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_RIB_H_ */ diff --git a/lib/librte_rib/rte_rib6.h b/lib/librte_rib/rte_rib6.h index 24faf46328..b5e10569b9 100644 --- a/lib/librte_rib/rte_rib6.h +++ b/lib/librte_rib/rte_rib6.h @@ -21,6 +21,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define RTE_RIB6_IPV6_ADDR_SIZE 16 /** @@ -339,4 +343,8 @@ __rte_experimental void rte_rib6_free(struct rte_rib6 *rib); -#endif /* _RTE_RIB_H_ */ +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_RIB6_H_ */