diff --git a/cores/esp8266/IPAddress.cpp b/cores/esp8266/IPAddress.cpp index f416c7c64..93a081eb2 100644 --- a/cores/esp8266/IPAddress.cpp +++ b/cores/esp8266/IPAddress.cpp @@ -112,3 +112,4 @@ String IPAddress::toString() return String(szRet); } +const IPAddress INADDR_NONE(0, 0, 0, 0); diff --git a/cores/esp8266/IPAddress.h b/cores/esp8266/IPAddress.h index 9248084b2..9e7dfe5e2 100644 --- a/cores/esp8266/IPAddress.h +++ b/cores/esp8266/IPAddress.h @@ -87,6 +87,6 @@ class IPAddress: public Printable { friend class DNSClient; }; -const IPAddress INADDR_NONE(0, 0, 0, 0); +extern const IPAddress INADDR_NONE; #endif