mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 15:16:02 +00:00
Define ETH_PAD_SIZE after including opt.h to avoid conflict with lwipopts.h
This commit is contained in:
parent
dd4ccfc672
commit
b462cb4575
|
@ -35,15 +35,16 @@
|
||||||
#ifndef __NETIF_ETHARP_H__
|
#ifndef __NETIF_ETHARP_H__
|
||||||
#define __NETIF_ETHARP_H__
|
#define __NETIF_ETHARP_H__
|
||||||
|
|
||||||
#ifndef ETH_PAD_SIZE
|
#include "lwip/opt.h"
|
||||||
#define ETH_PAD_SIZE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "lwip/pbuf.h"
|
#include "lwip/pbuf.h"
|
||||||
#include "lwip/ip_addr.h"
|
#include "lwip/ip_addr.h"
|
||||||
#include "lwip/netif.h"
|
#include "lwip/netif.h"
|
||||||
#include "lwip/ip.h"
|
#include "lwip/ip.h"
|
||||||
|
|
||||||
|
#ifndef ETH_PAD_SIZE
|
||||||
|
#define ETH_PAD_SIZE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef PACK_STRUCT_USE_INCLUDES
|
#ifdef PACK_STRUCT_USE_INCLUDES
|
||||||
# include "arch/bpstruct.h"
|
# include "arch/bpstruct.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user