From 62212e6d24fe2b1e52da0d6922cb2297f0bf32f4 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Wed, 5 Dec 2018 01:46:37 +0100 Subject: [PATCH] better compatibility for IPAddress changes with external libraries --- cores/esp8266/IPAddress.h | 4 +--- .../examples/EarlyDisableWiFi/EarlyDisableWiFi.ino | 1 + libraries/ESP8266WiFi/examples/IPv6/IPv6.ino | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/esp8266/IPAddress.h b/cores/esp8266/IPAddress.h index 7d2a95189c..e17125f8af 100644 --- a/cores/esp8266/IPAddress.h +++ b/cores/esp8266/IPAddress.h @@ -41,7 +41,7 @@ #else // lwIP-v2+ #define CONST const #if !LWIP_IPV6 -#define ip_addr ipv4_addr +struct ip_addr: ipv4_addr { }; #endif // !LWIP_IPV6 #endif // lwIP-v2+ @@ -208,6 +208,4 @@ class IPAddress: public Printable { extern CONST IPAddress INADDR_ANY; extern const IPAddress INADDR_NONE; -#include // bring interface iterator - #endif diff --git a/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino b/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino index 45627bdb16..2025246f3d 100644 --- a/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino +++ b/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino @@ -1,5 +1,6 @@ #include +#include #ifndef STASSID #define STASSID "your-ssid" diff --git a/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino b/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino index 565710a83e..eccb30ad1d 100644 --- a/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino +++ b/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino @@ -19,6 +19,7 @@ #include #include #include +#include #include #ifndef STASSID