From: Andy Pei Date: Fri, 18 Jan 2019 11:09:33 +0000 (+0000) Subject: bus/ifpga: fix build for cpp applications X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=03eab74ecb8d0249d655f2cd6c15abac764ca7d1;p=dpdk.git bus/ifpga: fix build for cpp applications Brackets unmatch when __cplusplus defined. Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library") Cc: stable@dpdk.org Signed-off-by: Andy Pei Reviewed-by: Ferruh Yigit --- diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h index d53c0f4830..0bf43ba88b 100644 --- a/drivers/bus/ifpga/rte_bus_ifpga.h +++ b/drivers/bus/ifpga/rte_bus_ifpga.h @@ -13,7 +13,7 @@ #ifdef __cplusplus extern "C" { -#endif +#endif /* __cplusplus */ #include #include @@ -143,4 +143,8 @@ RTE_PMD_EXPORT_NAME(nm, __COUNTER__) #define RTE_PMD_REGISTER_AFU_ALIAS(nm, alias)\ static const char *afudrvinit_ ## nm ## _alias = RTE_STR(alias) +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* _RTE_BUS_IFPGA_H_ */