[dpdk-dev] [RFC PATCH 4/7] eal: Add extern C on eal_private.h

Takuya ASADA syuu at cloudius-systems.com
Thu Mar 12 22:05:45 CET 2015


This is required to link with OSv EAL.

Signed-off-by: Takuya ASADA <syuu at cloudius-systems.com>
---
 lib/librte_eal/common/eal_private.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h
index 4acf5a0..80b3d44 100644
--- a/lib/librte_eal/common/eal_private.h
+++ b/lib/librte_eal/common/eal_private.h
@@ -34,6 +34,10 @@
 #ifndef _EAL_PRIVATE_H_
 #define _EAL_PRIVATE_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdio.h>
 
 /**
@@ -232,4 +236,8 @@ int rte_eal_dev_init(void);
  */
 int rte_eal_check_module(const char *module_name);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _EAL_PRIVATE_H_ */
-- 
2.1.0



More information about the dev mailing list