Skip to content

Commit f8f4b81

Browse files
d-a-vdevyte
authored andcommitted
better compatibility for IPAddress changes with external libraries (#5438)
1 parent e44bcfe commit f8f4b81

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: cores/esp8266/IPAddress.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#else // lwIP-v2+
4242
#define CONST const
4343
#if !LWIP_IPV6
44-
#define ip_addr ipv4_addr
44+
struct ip_addr: ipv4_addr { };
4545
#endif // !LWIP_IPV6
4646
#endif // lwIP-v2+
4747

@@ -208,6 +208,4 @@ class IPAddress: public Printable {
208208
extern CONST IPAddress INADDR_ANY;
209209
extern const IPAddress INADDR_NONE;
210210

211-
#include <AddrList.h> // bring interface iterator
212-
213211
#endif

Diff for: libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
#include <ESP8266WiFi.h>
3+
#include <AddrList.h>
34

45
#ifndef STASSID
56
#define STASSID "your-ssid"

Diff for: libraries/ESP8266WiFi/examples/IPv6/IPv6.ino

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <ESP8266WiFi.h>
2020
#include <WiFiUdp.h>
2121
#include <PolledTimeout.h>
22+
#include <AddrList.h>
2223
#include <lwip/dns.h>
2324

2425
#ifndef STASSID

0 commit comments

Comments
 (0)