From 3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 10 Nov 2011 20:40:06 -0500 Subject: fix all missing instances of __cplusplus checks/extern "C" in headers patch by Arvid Picciani (aep) --- include/net/ethernet.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/net/ethernet.h') diff --git a/include/net/ethernet.h b/include/net/ethernet.h index a536502d..f3c11e7d 100644 --- a/include/net/ethernet.h +++ b/include/net/ethernet.h @@ -1,6 +1,10 @@ #ifndef __NET_ETHERNET_H #define __NET_ETHERNET_H 1 +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -44,4 +48,8 @@ struct ether_header { #define ETHERMTU ETH_DATA_LEN #define ETHERMIN (ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN) +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.1