From ac1593b22a05525ecabb99fb40dae1da368d6752 Mon Sep 17 00:00:00 2001 From: Pawel Wodkowski Date: Fri, 30 Jan 2015 14:21:11 +0100 Subject: [PATCH] bond: fix headers for C++ Add missing declarations to rte_bond_8023ad.h. Remove 'extern "C"' declarations from bond private header file. Signed-off-by: Pawel Wodkowski Acked-by: Declan Doherty --- lib/librte_pmd_bond/rte_eth_bond_8023ad.h | 8 ++++++++ lib/librte_pmd_bond/rte_eth_bond_private.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/librte_pmd_bond/rte_eth_bond_8023ad.h b/lib/librte_pmd_bond/rte_eth_bond_8023ad.h index 9adc6aa160..ebd0e934f6 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_8023ad.h +++ b/lib/librte_pmd_bond/rte_eth_bond_8023ad.h @@ -36,6 +36,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * Actor/partner states */ @@ -211,4 +215,8 @@ int rte_eth_bond_8023ad_slave_info(uint8_t port_id, uint8_t slave_id, struct rte_eth_bond_8023ad_slave_info *conf); +#ifdef __cplusplus +} +#endif + #endif /* RTE_ETH_BOND_8023AD_H_ */ diff --git a/lib/librte_pmd_bond/rte_eth_bond_private.h b/lib/librte_pmd_bond/rte_eth_bond_private.h index e01e66b8de..3da5a9ed52 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_private.h +++ b/lib/librte_pmd_bond/rte_eth_bond_private.h @@ -34,10 +34,6 @@ #ifndef _RTE_ETH_BOND_PRIVATE_H_ #define _RTE_ETH_BOND_PRIVATE_H_ -#ifdef __cplusplus -extern "C" { -#endif - #include #include @@ -276,8 +272,4 @@ int bond_ethdev_parse_time_ms_kvarg(const char *key __rte_unused, const char *value, void *extra_args); -#ifdef __cplusplus -} -#endif - #endif -- 2.20.1