Eliminate IP_PCB_IPVER_EQ macro

This commit is contained in:
Dirk Ziegelmeier
2016-02-21 19:45:51 +01:00
parent 5a25652c21
commit 339e82d7aa
3 changed files with 6 additions and 11 deletions

View File

@@ -77,11 +77,9 @@ extern "C" {
#if LWIP_IPV6 && LWIP_IPV4
#define IP_PCB_ISIPV6_MEMBER u8_t isipv6;
#define IP_PCB_IPVER_EQ(pcb1, pcb2) ((pcb1)->isipv6 == (pcb2)->isipv6)
#define PCB_ISIPV6(pcb) ((pcb)->isipv6)
#else
#define IP_PCB_ISIPV6_MEMBER
#define IP_PCB_IPVER_EQ(pcb1, pcb2) 1
#define PCB_ISIPV6(pcb) LWIP_IPV6
#endif /* LWIP_IPV6 */