[dpdk-dev] [PATCH] build: C++ linkage support is added to rte_service_component.h file
Thomas Monjalon
thomas at monjalon.net
Tue Jul 7 16:19:12 CEST 2020
07/07/2020 14:25, levendsayar at gmail.com:
> From: Levend Sayar <levendsayar at gmail.com>
Would be good to have a short explanation, even if obvious.
> Signed-off-by: Levend Sayar <levendsayar at gmail.com>
> ---
> lib/librte_eal/include/rte_service_component.h | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
Is it the only file missing such C++ guard?
> --- 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 <rte_compat.h>
> #include <rte_service.h>
>
> @@ -130,4 +135,8 @@ int32_t rte_service_init(void);
> */
> void rte_service_finalize(void);
>
> -#endif /* _SERVICE_PRIVATE_H_ */
> +#ifdef __cplusplus
> +}
> +#endif
> +
> +#endif /* _RTE_SERVICE_PRIVATE_H_ */
>
More information about the dev
mailing list