From a43e3969513cbc0bc0ae83e7b474f6e335486538 Mon Sep 17 00:00:00 2001 From: Brian Dooley Date: Wed, 16 Feb 2022 15:14:56 +0000 Subject: [PATCH] cryptodev: add missing C++ guards Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards. Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: stable@dpdk.org Signed-off-by: Brian Dooley Acked-by: Bruce Richardson Acked-by: Tyler Retzlaff --- 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 8bbb9caeae..2b1ce2da2d 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 * @@ -636,4 +640,8 @@ RTE_STD_C11 struct rte_cryptodev_asym_session { uint8_t sess_private_data[0]; }; +#ifdef __cplusplus +} +#endif + #endif /* _CRYPTODEV_PMD_H_ */ -- 2.20.1