[dpdk-dev,RFC,PATCHv2,4/8] eal: Add extern C on eal_private.h
Commit Message
This is required to link with OSv EAL.
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
---
lib/librte_eal/common/eal_private.h | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -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_ */