mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 14:46:01 +00:00
This patch addresses the following error when compiled against clang/LLVM 3.3 with -std=c++11:
error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
This commit is contained in:
parent
32b1a9fc8a
commit
29824f9baa
|
@ -210,7 +210,7 @@ u8_t ip4_addr_netmask_valid(u32_t netmask);
|
||||||
#define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL))
|
#define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL))
|
||||||
|
|
||||||
#define ip_addr_debug_print(debug, ipaddr) \
|
#define ip_addr_debug_print(debug, ipaddr) \
|
||||||
LWIP_DEBUGF(debug, ("%"U16_F".%"U16_F".%"U16_F".%"U16_F, \
|
LWIP_DEBUGF(debug, ("%" U16_F ".%" U16_F ".%" U16_F ".%" U16_F, \
|
||||||
ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
|
ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
|
||||||
ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
|
ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
|
||||||
ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
|
ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
|
||||||
|
|
|
@ -264,7 +264,7 @@ Little-endian version, stored in network order (no htonl). */
|
||||||
#define ip6_addr_isdeprecated(addr_state) (addr_state == IP6_ADDR_DEPRECATED)
|
#define ip6_addr_isdeprecated(addr_state) (addr_state == IP6_ADDR_DEPRECATED)
|
||||||
|
|
||||||
#define ip6_addr_debug_print(debug, ipaddr) \
|
#define ip6_addr_debug_print(debug, ipaddr) \
|
||||||
LWIP_DEBUGF(debug, ("%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F, \
|
LWIP_DEBUGF(debug, ("%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F, \
|
||||||
ipaddr != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0, \
|
ipaddr != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0, \
|
||||||
ipaddr != NULL ? IP6_ADDR_BLOCK2(ipaddr) : 0, \
|
ipaddr != NULL ? IP6_ADDR_BLOCK2(ipaddr) : 0, \
|
||||||
ipaddr != NULL ? IP6_ADDR_BLOCK3(ipaddr) : 0, \
|
ipaddr != NULL ? IP6_ADDR_BLOCK3(ipaddr) : 0, \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user