From: Prateek Agarwal Date: Sat, 7 Nov 2020 09:00:38 +0000 (+0530) Subject: net/i40e: add C++ include guard X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=876589e07ed3ce36b6390ebf41615a8a74557cca;p=dpdk.git net/i40e: add C++ include guard Add extern "C" in rte_pmd_i40e.h when be compiled with CPP. Fixes: 17e906a1ea9c ("net/i40e: support link status notification") Cc: stable@dpdk.org Signed-off-by: Prateek Agarwal Acked-by: Qi Zhang --- diff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h index fc3560c28c..4cb21c3713 100644 --- a/drivers/net/i40e/rte_pmd_i40e.h +++ b/drivers/net/i40e/rte_pmd_i40e.h @@ -14,6 +14,10 @@ * */ +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -1130,4 +1134,8 @@ __rte_experimental int rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev); +#ifdef __cplusplus +} +#endif + #endif /* _PMD_I40E_H_ */