diff --git a/cores/arduino/IPAddress.cpp b/cores/arduino/IPAddress.cpp index d9fe5be1d..a345d5f3b 100644 --- a/cores/arduino/IPAddress.cpp +++ b/cores/arduino/IPAddress.cpp @@ -112,3 +112,5 @@ size_t IPAddress::printTo(Print& p) const return n; } +const IPAddress INADDR_NONE(0,0,0,0); + diff --git a/cores/arduino/IPAddress.h b/cores/arduino/IPAddress.h index d762f2c02..5d0db6e45 100644 --- a/cores/arduino/IPAddress.h +++ b/cores/arduino/IPAddress.h @@ -73,6 +73,6 @@ class IPAddress : public Printable { friend class DNSClient; }; -const IPAddress INADDR_NONE(0,0,0,0); +extern const IPAddress INADDR_NONE; #endif