mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
icmp6: Fix "LWIP_ICMP6_DATASIZE" redefined build warning if it was set to 0
Need to undefine LWIP_ICMP6_DATASIZE before change the setting. While at it, also remove the unneeded #ifndef LWIP_ICMP6_DATASIZE checking because it is set in lwip/opt.h. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
a894140bb0
commit
e9bd31b190
@ -57,10 +57,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifndef LWIP_ICMP6_DATASIZE
|
||||
#define LWIP_ICMP6_DATASIZE 8
|
||||
#endif
|
||||
#if LWIP_ICMP6_DATASIZE == 0
|
||||
#undef LWIP_ICMP6_DATASIZE
|
||||
#define LWIP_ICMP6_DATASIZE 8
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user