mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Avoid multiple instances of INADDR_NONE
By moving the definition from the header to the source we now only use one instance for the entire app with a little saving in space.
This commit is contained in:
parent
3663359c0b
commit
3136c61346
@ -112,3 +112,4 @@ String IPAddress::toString()
|
||||
return String(szRet);
|
||||
}
|
||||
|
||||
const IPAddress INADDR_NONE(0, 0, 0, 0);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user