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 <stephen@networkplumber.org>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
#include <rte_compat.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* rte_rib_get_nxt() flags
*/
void
rte_rib_free(struct rte_rib *rib);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RTE_RIB_H_ */
#include <rte_memcpy.h>
#include <rte_compat.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define RTE_RIB6_IPV6_ADDR_SIZE 16
/**
void
rte_rib6_free(struct rte_rib6 *rib);
-#endif /* _RTE_RIB_H_ */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RTE_RIB6_H_ */