Skip to content

Commit 6df55d1

Browse files
author
natitr
committed
Move definition of INADDR_NONE to IPAddress.cpp
1 parent b324381 commit 6df55d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cores/arduino/IPAddress.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ size_t IPAddress::printTo(Print& p) const
112112
return n;
113113
}
114114

115+
const IPAddress INADDR_NONE(0,0,0,0);
116+

cores/arduino/IPAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ class IPAddress : public Printable {
7373
friend class DNSClient;
7474
};
7575

76-
const IPAddress INADDR_NONE(0,0,0,0);
76+
extern const IPAddress INADDR_NONE;
7777

7878
#endif

0 commit comments

Comments
 (0)