Skip to content

Commit 12e1c3b

Browse files
committed
Move definition of INADDR_NONE to IPAddress.cpp
1 parent b324381 commit 12e1c3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: cores/arduino/IPAddress.cpp

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

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

Diff for: 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)