diff mbox

[3/3] linux-generic: odp_pktio_netmap: add cpluspus ifdef

Message ID 1408579384-21392-4-git-send-email-anders.roxell@linaro.org
State Accepted
Commit c28cf78818b17318e47b06abb0032fddf9b996d7
Headers show

Commit Message

Anders Roxell Aug. 21, 2014, 12:03 a.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 platform/linux-generic/include/api/odp_pktio_netmap.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_pktio_netmap.h b/platform/linux-generic/include/api/odp_pktio_netmap.h
index 85272d5..294a13d 100644
--- a/platform/linux-generic/include/api/odp_pktio_netmap.h
+++ b/platform/linux-generic/include/api/odp_pktio_netmap.h
@@ -14,6 +14,10 @@ 
 #ifndef ODP_PKTIO_NETMAP_H
 #define ODP_PKTIO_NETMAP_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <odp_pktio_types.h>
 
 #define ODP_NETMAP_MODE_HW	0 /**< Netmap mode in hardware */
@@ -28,4 +32,8 @@  typedef struct {
 	uint16_t ringid;	/**< Ring identifiers */
 } netmap_params_t;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif