Skip to content

Navigation Menu

Sign in
Appearance settings

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 filesBrowse 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
Copy full SHA for e8a243c

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎libraries/Network/src/NetworkClient.cpp

Copy file name to clipboardExpand all lines: libraries/Network/src/NetworkClient.cpp
+5-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.