The header was missing the extern "C" directive which causes name
mangling of functions by C++ compilers, leading to linker errors
complaining of undefined references to these functions.
Fixes: 86c743cf9140 ("eal: define generic vector types")
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ashish Sadanandan <[email protected]>
---
.mailmap | 2 +-
lib/eal/include/generic/rte_vect.h | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index aa569ff456..3938ace307 100644
--- a/.mailmap
+++ b/.mailmap
@@ -140,7 +140,7 @@ Ashijeet Acharya <[email protected]>
Ashish Gupta <[email protected]> <[email protected]>
<[email protected]>
Ashish Jain <[email protected]>
Ashish Paul <[email protected]>
-Ashish Sadanandan <[email protected]>
+Ashish Sadanandan <[email protected]> <[email protected]>
Ashish Shah <[email protected]>
Ashwin Sekhar T K <[email protected]> <[email protected]>
Asim Jamshed <[email protected]>
diff --git a/lib/eal/include/generic/rte_vect.h
b/lib/eal/include/generic/rte_vect.h
index 6540419cd2..3578d8749b 100644
--- a/lib/eal/include/generic/rte_vect.h
+++ b/lib/eal/include/generic/rte_vect.h
@@ -15,6 +15,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef RTE_TOOLCHAIN_MSVC
/* Unsigned vector types */
@@ -226,4 +230,8 @@ uint16_t rte_vect_get_max_simd_bitwidth(void);
*/
int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RTE_VECT_H_ */
--
2.31.1