mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +00:00
ensure the 'prot' headers are as small & portable as possible
This commit is contained in:
parent
dc7340bbd5
commit
6f62fe5998
@ -40,10 +40,6 @@
|
||||
#ifndef LWIP_HDR_PROT_AUTOIP_H
|
||||
#define LWIP_HDR_PROT_AUTOIP_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -77,6 +73,4 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LWIP_IPV4 && LWIP_AUTOIP */
|
||||
|
||||
#endif /* LWIP_HDR_PROT_AUTOIP_H */
|
||||
|
@ -40,11 +40,6 @@
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
#if LWIP_DHCP /* don't build if not configured for use in lwipopts.h */
|
||||
|
||||
#include "lwip/netif.h"
|
||||
#include "lwip/udp.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -187,6 +182,4 @@ PACK_STRUCT_END
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LWIP_DHCP */
|
||||
|
||||
#endif /*LWIP_HDR_PROT_DHCP_H*/
|
||||
|
@ -37,7 +37,6 @@
|
||||
#ifndef LWIP_HDR_PROT_IP_H
|
||||
#define LWIP_HDR_PROT_IP_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/arch.h"
|
||||
|
||||
#define IP_PROTO_ICMP 1
|
||||
|
@ -37,10 +37,6 @@
|
||||
#ifndef LWIP_HDR_PROT_IP4_H
|
||||
#define LWIP_HDR_PROT_IP4_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
#if LWIP_IPV4
|
||||
|
||||
#include "lwip/arch.h"
|
||||
#include "lwip/ip4_addr.h"
|
||||
|
||||
@ -112,8 +108,6 @@ PACK_STRUCT_END
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
#endif /* LWIP_HDR_PROT_IP4_H */
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user