8000 fix(network): fixes a macro name conflict warning (#11068) · Jason2866/arduino-esp32@e8a243c · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8a243c

Browse files
authored
fix(network): fixes a macro name conflict warning (espressif#11068)
* fix(network): fixes a macro name conflict warning * feat(networking): removed local maco definition in favor of IDF one
1 parent d9dbc4a commit e8a243c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libraries/Network/src/NetworkClient.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
#include <lwip/netdb.h>
2424
#include <errno.h>
2525

26-
#define IN6_IS_ADDR_V4MAPPED(a) ((((__const uint32_t *)(a))[0] == 0) && (((__const uint32_t *)(a))[1] == 0) && (((__const uint32_t *)(a))[2] == htonl(0xffff)))
26+
// It is already defined in IDF as:
27+
//#define IN6_IS_ADDR_V4MAPPED(a) ip6_addr_isipv4mappedipv6((ip6_addr_t*)(a))
28+
//#define ip6_addr_isipv4mappedipv6(ip6addr) (((ip6addr)->addr[0] == 0) && ((ip6addr)->addr[1] == 0) && (((ip6addr)->addr[2]) == PP_HTONL(0x0000FFFFUL)))
29+
// Keeping as a memory of the change.
30+
//#define _IN6_IS_ADDR_V4MAPPED(a) ((((__const uint32_t *)(a))[0] == 0) && (((__const uint32_t *)(a))[1] == 0) && (((__const uint32_t *)(a))[2] == htonl(0xffff)))
2731

2832
#define WIFI_CLIENT_DEF_CONN_TIMEOUT_MS (3000)
2933
#define WIFI_CLIENT_MAX_WRITE_RETRY (10)

0 commit comments

Comments
 (0)
0