]> git.droids-corp.org - dpdk.git/commitdiff
acl: add missing C++ guards
authorBrian Dooley <brian.dooley@intel.com>
Wed, 16 Feb 2022 15:14:50 +0000 (15:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 13:47:49 +0000 (14:47 +0100)
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")
Cc: stable@dpdk.org
Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
lib/acl/rte_acl_osdep.h

index b2c262dee78e8ef828e65ad071818e558b8d0ef4..3c1dc402ca5f832d5647005eecf12a70a558d3a4 100644 (file)
@@ -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 <rte_cpuflags.h>
 #include <rte_debug.h>
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RTE_ACL_OSDEP_H_ */