Supplement the first half of braces for the extern "C" block

Fixes: 99a2dd955fba6 ("lib: remove librte_ prefix from directory names")
Cc: bruce.richard...@intel.com

Signed-off-by: Weiguo Li <liw...@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

Reply via email to