mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
Workaround for [hn]to[nh][ls] naming collisions on some platforms (only used if LWIP_PREFIX_BYTEORDER_FUNCS is defined). Closes patch #1490.
This commit is contained in:
parent
98bd3028f2
commit
d5e08d7d78
@ -67,6 +67,13 @@ u8_t *inet_ntoa(u32_t addr); /* returns ptr to static buffer; not reentrant! */
|
|||||||
#define htonl(x) (x)
|
#define htonl(x) (x)
|
||||||
#define ntohl(x) (x)
|
#define ntohl(x) (x)
|
||||||
#else
|
#else
|
||||||
|
#ifdef LWIP_PREFIX_BYTEORDER_FUNCS
|
||||||
|
/* workaround for naming collisions on some platforms */
|
||||||
|
#define htons lwip_htons
|
||||||
|
#define ntohs lwip_ntohs
|
||||||
|
#define htonl lwip_htonl
|
||||||
|
#define ntohl lwip_ntohl
|
||||||
|
#endif
|
||||||
u16_t htons(u16_t x);
|
u16_t htons(u16_t x);
|
||||||
u16_t ntohs(u16_t x);
|
u16_t ntohs(u16_t x);
|
||||||
u32_t htonl(u32_t x);
|
u32_t htonl(u32_t x);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user