1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Add ipv4_addr_t for espconn/LwIP1.4 compat (#6740)

`espconnn.h` references ipv4_addr_t, so it seems appropriate it be defined here also.
This commit is contained in:
Peter 2019-11-10 09:41:26 +10:00 committed by david gauchard
parent 6626b2fb07
commit 2c2468f962

View File

@ -32,6 +32,7 @@
#define LWIP_IPV6_NUM_ADDRESSES 0 #define LWIP_IPV6_NUM_ADDRESSES 0
#define ip_2_ip4(x) (x) #define ip_2_ip4(x) (x)
#define ipv4_addr ip_addr #define ipv4_addr ip_addr
#define ipv4_addr_t ip_addr_t
#define IP_IS_V4_VAL(x) (1) #define IP_IS_V4_VAL(x) (1)
#define IP_SET_TYPE_VAL(x,y) do { (void)0; } while (0) #define IP_SET_TYPE_VAL(x,y) do { (void)0; } while (0)
#define IP_ANY_TYPE (&ip_addr_any) #define IP_ANY_TYPE (&ip_addr_any)