[dpdk-dev] [RFC PATCHv2 2/8] eal: Add extern C on eal_hugepages.h

Takuya ASADA syuu at cloudius-systems.com
Sat Mar 21 04:22:59 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