[PATCH 11/11] cryptodev: fix missing C++ guards
Brian Dooley
brian.dooley at intel.com
Tue Feb 15 18:08:17 CET 2022
Some public header files were missing 'extern "C"' C++ guards,
and couldnt be used by C++ applications. Add the missing guards.
Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers")
Cc: thomas at monjalon.net
Cc: stable at dpdk.org
Signed-off-by: Brian Dooley <brian.dooley at intel.com>
---
lib/cryptodev/cryptodev_pmd.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
index d91902f6e0..24ff1a5480 100644
--- a/lib/cryptodev/cryptodev_pmd.h
+++ b/lib/cryptodev/cryptodev_pmd.h
@@ -5,6 +5,10 @@
#ifndef _CRYPTODEV_PMD_H_
#define _CRYPTODEV_PMD_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** @file
* RTE Crypto PMD APIs
*
@@ -640,4 +644,8 @@ RTE_STD_C11 struct rte_cryptodev_asym_session {
uint8_t sess_private_data[0];
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _CRYPTODEV_PMD_H_ */
--
2.25.1
More information about the stable
mailing list