mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-13 11:47:00 +08:00
Reduce code size: don't include code in those files if IP_FRAG == 0 and IP_REASSEMBLY == 0
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#ifndef __LWIP_IP_FRAG_H__
|
||||
#define __LWIP_IP_FRAG_H__
|
||||
|
||||
#if (IP_FRAG || IP_REASSEMBLY)
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/err.h"
|
||||
#include "lwip/pbuf.h"
|
||||
@@ -47,6 +49,6 @@ void ip_reass_tmr(void);
|
||||
struct pbuf * ip_reass(struct pbuf *p);
|
||||
err_t ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest);
|
||||
|
||||
#endif /* IP_FRAG || IP_REASSEMBLY */
|
||||
|
||||
#endif /* __LWIP_IP_FRAG_H__ */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user