Skip to content

Commit 3dbd7d7

Browse files
committed
Move INADDR_NONE definition to cpp
Fixes arduino/Arduino#1007
1 parent 5e21320 commit 3dbd7d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: api/IPAddress.cpp

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

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

Diff for: api/IPAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ class IPAddress : public Printable {
7272
friend class DNSClient;
7373
};
7474

75-
const IPAddress INADDR_NONE(0,0,0,0);
75+
extern const IPAddress INADDR_NONE;
7676

0 commit comments

Comments
 (0)