Skip to content

Commit 9754bd8

Browse files
Merge branch 'main' into replace-queue-v2-part1
2 parents d3e5501 + b8db173 commit 9754bd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AsyncTCP.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#ifdef ARDUINO
1313
#include "IPAddress.h"
14-
#if ESP_IDF_VERSION_MAJOR < 5
14+
#if __has_include(<IPv6Address.h>)
1515
#include "IPv6Address.h"
1616
#endif
1717
#endif
@@ -97,7 +97,7 @@ class AsyncClient {
9797
bool connect(ip_addr_t addr, uint16_t port);
9898
#ifdef ARDUINO
9999
bool connect(const IPAddress &ip, uint16_t port);
100-
#if ESP_IDF_VERSION_MAJOR < 5
100+
#if __has_include(<IPv6Address.h>)
101101
bool connect(const IPv6Address &ip, uint16_t port);
102102
#endif
103103
#endif
@@ -211,7 +211,7 @@ class AsyncClient {
211211
ip6_addr_t getRemoteAddress6() const;
212212
ip6_addr_t getLocalAddress6() const;
213213
#ifdef ARDUINO
214-
#if ESP_IDF_VERSION_MAJOR < 5
214+
#if __has_include(<IPv6Address.h>)
215215
IPv6Address remoteIP6() const;
216216
IPv6Address localIP6() const;
217217
#else
@@ -311,7 +311,7 @@ class AsyncServer {
311311
AsyncServer(ip_addr_t addr, uint16_t port);
312312
#ifdef ARDUINO
313313
AsyncServer(IPAddress addr, uint16_t port);
314-
#if ESP_IDF_VERSION_MAJOR < 5
314+
#if __has_include(<IPv6Address.h>)
315315
AsyncServer(IPv6Address addr, uint16_t port);
316316
#endif
317317
#endif

0 commit comments

Comments
 (0)