diff mbox

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

Message ID 1426908185-27940-3-git-send-email-syuu@cloudius-systems.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Takuya ASADA March 21, 2015, 3:22 a.m. UTC
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(+)
diff mbox

Patch

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 */