[PATCH 5/6] eal/windows: fix the curly braces mismatch problem
Weiguo Li
liwg06 at foxmail.com
Sun Feb 6 01:44:13 CET 2022
Supplement the first half of braces for the extern "C" block
Fixes: 99a2dd955fba6 ("lib: remove librte_ prefix from directory names")
Cc: bruce.richardson at intel.com
Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
---
lib/eal/windows/include/dirent.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/eal/windows/include/dirent.h b/lib/eal/windows/include/dirent.h
index 34eb077f8c..0a399d3145 100644
--- a/lib/eal/windows/include/dirent.h
+++ b/lib/eal/windows/include/dirent.h
@@ -28,6 +28,10 @@
#include <sys/stat.h>
#include <errno.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Maximum length of file name */
#if !defined(PATH_MAX)
# define PATH_MAX MAX_PATH
--
2.25.1
More information about the dev
mailing list