[dpdk-dev,RFC,PATCHv2,2/8] eal: Add extern C on eal_hugepages.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_hugepages.h | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -34,6 +34,10 @@
#ifndef EAL_HUGEPAGES_H
#define EAL_HUGEPAGES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
@@ -64,4 +68,8 @@ struct hugepage_file {
*/
int eal_hugepage_info_init(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* EAL_HUGEPAGES_H */