From: Levend Sayar Date: Thu, 9 Jul 2020 12:32:16 +0000 (+0300) Subject: service: fix C++ linkage X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=604d426de35b445476fa1b9aeae4933ae647be3f;p=dpdk.git service: fix C++ linkage "extern C" define is added to rte_service_component.h file to be able to use in C++ context Fixes: 21698354c832 ("service: introduce service cores concept") Cc: stable@dpdk.org Signed-off-by: Levend Sayar Acked-by: Harry van Haaren --- diff --git a/lib/librte_eal/include/rte_service_component.h b/lib/librte_eal/include/rte_service_component.h index b75aba11b9..9e66ee7e29 100644 --- a/lib/librte_eal/include/rte_service_component.h +++ b/lib/librte_eal/include/rte_service_component.h @@ -9,6 +9,11 @@ * Include this file if you are writing a component that requires CPU cycles to * operate, and you wish to run the component using service cores */ + +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -130,4 +135,8 @@ int32_t rte_service_init(void); */ void rte_service_finalize(void); +#ifdef __cplusplus +} +#endif + #endif /* _SERVICE_PRIVATE_H_ */