mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 22:24:33 +02:00
Merge branch 'contrib/github_pr_8164' into 'master'
Replace lwIP byte order functions with built-in functions (GitHub PR) Closes IDFGH-6512 See merge request espressif/esp-idf!16627
This commit is contained in:
@@ -50,6 +50,12 @@ extern "C" {
|
|||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif // BYTE_ORDER
|
#endif // BYTE_ORDER
|
||||||
|
|
||||||
|
#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
|
||||||
|
#define htons(x) __builtin_bswap16(x)
|
||||||
|
#define ntohs(x) __builtin_bswap16(x)
|
||||||
|
#define htonl(x) __builtin_bswap32(x)
|
||||||
|
#define ntohl(x) __builtin_bswap32(x)
|
||||||
|
|
||||||
#ifndef CONFIG_LWIP_ESP_LWIP_ASSERT
|
#ifndef CONFIG_LWIP_ESP_LWIP_ASSERT
|
||||||
#define LWIP_NOASSERT 1
|
#define LWIP_NOASSERT 1
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user