X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnet%2Fethernet.h;h=c8d4177fd278b2829a198c915919ac5f184f670d;hb=b439c051c7eee4eb4b93fc382f993aa6305ce530;hp=a536502d945924b4425ce0cd63ed540a2f86d934;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/net/ethernet.h b/include/net/ethernet.h index a536502d..c8d4177f 100644 --- a/include/net/ethernet.h +++ b/include/net/ethernet.h @@ -1,5 +1,9 @@ -#ifndef __NET_ETHERNET_H -#define __NET_ETHERNET_H 1 +#ifndef _NET_ETHERNET_H +#define _NET_ETHERNET_H + +#ifdef __cplusplus +extern "C" { +#endif #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