From 68be7b2bae7cf75e711d899957e9578f9d846543 Mon Sep 17 00:00:00 2001 From: Brian Dooley Date: Wed, 16 Feb 2022 15:14:50 +0000 Subject: [PATCH] acl: add missing C++ guards [ upstream commit bfec92e3821f57200f7e956f39745303f995531d ] Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards. Fixes: dc276b5780c2 ("acl: new library") Signed-off-by: Brian Dooley Acked-by: Bruce Richardson Acked-by: Tyler Retzlaff --- lib/librte_acl/rte_acl_osdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_acl/rte_acl_osdep.h b/lib/librte_acl/rte_acl_osdep.h index b2c262dee7..3c1dc402ca 100644 --- a/lib/librte_acl/rte_acl_osdep.h +++ b/lib/librte_acl/rte_acl_osdep.h @@ -5,6 +5,10 @@ #ifndef _RTE_ACL_OSDEP_H_ #define _RTE_ACL_OSDEP_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -45,4 +49,8 @@ #include #include +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ACL_OSDEP_H_ */