From 12e1c3bc035a9c8c5de3e0bfd061f124eb1ac540 Mon Sep 17 00:00:00 2001 From: pianistrevor Date: Tue, 22 Feb 2022 20:22:06 -0800 Subject: [PATCH] Move definition of INADDR_NONE to IPAddress.cpp --- cores/arduino/IPAddress.cpp | 1 + cores/arduino/IPAddress.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/arduino/IPAddress.cpp b/cores/arduino/IPAddress.cpp index d9fe5be1d..339002670 100644 --- a/cores/arduino/IPAddress.cpp +++ b/cores/arduino/IPAddress.cpp @@ -112,3 +112,4 @@ size_t IPAddress::printTo(Print& p) const return n; } +const IPAddress INADDR_NONE(0,0,0,0); \ No newline at end of file diff --git a/cores/arduino/IPAddress.h b/cores/arduino/IPAddress.h index d762f2c02..5d0db6e45 100644 --- a/cores/arduino/IPAddress.h +++ b/cores/arduino/IPAddress.h @@ -73,6 +73,6 @@ class IPAddress : public Printable { friend class DNSClient; }; -const IPAddress INADDR_NONE(0,0,0,0); +extern const IPAddress INADDR_NONE; #endif