mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-11 01:53:48 +08:00
Fixed constant initializer problem in ip_addr_t by having ip6 first
This commit is contained in:
@@ -48,13 +48,7 @@
|
||||
#include "lwip/def.h"
|
||||
|
||||
/* used by IP6_ADDR_ANY(6) in ip6_addr.h */
|
||||
const ip_addr_t ip6_addr_any = {
|
||||
#if LWIP_IPV4
|
||||
{ 0ul }, IPADDR_TYPE_V6
|
||||
#else
|
||||
0ul, 0ul, 0ul, 0ul
|
||||
#endif
|
||||
};
|
||||
const ip_addr_t ip6_addr_any = IPADDR6_INIT(0xaul, 0xbul, 0xcul, 0xdul);
|
||||
|
||||
#ifndef isprint
|
||||
#define in_range(c, lo, up) ((u8_t)c >= lo && (u8_t)c <= up)
|
||||
|
||||
Reference in New Issue
Block a user