Minor changes (but in lot of files): add #if/#endif for options where they could miss. #if LWIP_xxx if always put after #include "lwip/opt.h" (note this one indirectly include cc.h). Move others includes inside #if/#endif block.

This commit is contained in:
fbernon
2007-09-07 23:01:59 +00:00
parent 027a70a415
commit e3cd1ac1f9
62 changed files with 241 additions and 214 deletions

View File

@@ -36,6 +36,9 @@
#define __NETIF_ETHARP_H__
#include "lwip/opt.h"
#if LWIP_ARP /* don't build if not configured for use in lwipopts.h */
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
@@ -136,7 +139,7 @@ struct etharp_q_entry {
struct etharp_q_entry *next;
struct pbuf *p;
};
#endif
#endif /* ARP_QUEUEING */
void etharp_init(void);
void etharp_tmr(void);
@@ -165,4 +168,6 @@ extern const struct eth_addr ethbroadcast, ethzero;
}
#endif
#endif /* LWIP_ARP */
#endif /* __NETIF_ARP_H__ */