eal: add C++ include guard for reciprocal header

Add missing extern "C" linkage for rte_reciprocal.h consistent with
other eal headers.

Fixes: ffe3ec811e ("sched: introduce reciprocal divide")
Cc: stable@dpdk.org

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
Tyler Retzlaff 2021-03-17 09:14:12 -07:00 committed by David Marchand
parent 692c0e78a5
commit a6f88f7eb9

View File

@ -29,6 +29,10 @@
#include <rte_common.h>
#ifdef __cplusplus
extern "C" {
#endif
struct rte_reciprocal {
uint32_t m;
uint8_t sh1, sh2;
@ -89,4 +93,8 @@ rte_reciprocal_divide_u64(uint64_t a, const struct rte_reciprocal_u64 *R)
struct rte_reciprocal rte_reciprocal_value(uint32_t d);
struct rte_reciprocal_u64 rte_reciprocal_value_u64(uint64_t d);
#ifdef __cplusplus
}
#endif
#endif /* _RTE_RECIPROCAL_H_ */