From 0ec62c09e80667fcfcf387572a642be499254a3a Mon Sep 17 00:00:00 2001 From: linjiaqian Date: Thu, 22 Aug 2024 11:05:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dinaddr=5Fnone=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/esp32/IPAddress.cpp | 2 ++ cores/esp32/IPAddress.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cores/esp32/IPAddress.cpp b/cores/esp32/IPAddress.cpp index b4fc4c3f7e0..128efaf9269 100644 --- a/cores/esp32/IPAddress.cpp +++ b/cores/esp32/IPAddress.cpp @@ -411,4 +411,6 @@ esp_ip6_addr_type_t IPAddress::addr_type() const { } const IPAddress IN6ADDR_ANY(IPv6); +#ifndef INADDR_NONE const IPAddress INADDR_NONE(0, 0, 0, 0); +#endif diff --git a/cores/esp32/IPAddress.h b/cores/esp32/IPAddress.h index b88aeed3026..74a301da892 100644 --- a/cores/esp32/IPAddress.h +++ b/cores/esp32/IPAddress.h @@ -134,4 +134,6 @@ class IPAddress : public Printable { }; extern const IPAddress IN6ADDR_ANY; +#ifndef INADDR_NONE extern const IPAddress INADDR_NONE; +#endif pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy