Skip to content

Commit ea7d2ad

Browse files
committed
fix non extern instance
fix arduino/Arduino#1007
1 parent b7c6076 commit ea7d2ad

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)