[dpdk-dev] [RFC PATCH 2/7] eal: Add extern C on eal_hugepages.h
Takuya ASADA
syuu at cloudius-systems.com
Thu Mar 12 22:05:43 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_hugepages.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/librte_eal/common/eal_hugepages.h b/lib/librte_eal/common/eal_hugepages.h
index 38edac0..b722aee 100644
--- a/lib/librte_eal/common/eal_hugepages.h
+++ b/lib/librte_eal/common/eal_hugepages.h
@@ -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 */
--
2.1.0
More information about the dev
mailing list