rib: add C++ include guard

All include files should be safe from C++

Fixes: 5a5793a5ff ("rib: add RIB library")
Fixes: f7e861e21c ("rib: support IPv6")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
This commit is contained in:
Stephen Hemminger 2020-06-25 13:32:08 -07:00 committed by Thomas Monjalon
parent 58607c2e27
commit b2a0b9f044
2 changed files with 17 additions and 1 deletions

View file

@ -20,6 +20,10 @@
#include <rte_compat.h>
#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_ */

View file

@ -21,6 +21,10 @@
#include <rte_memcpy.h>
#include <rte_compat.h>
#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_ */