LWIP: Provide inline replacements for htons() and htonl()

pull/15107/head
ndrs-pst 2021-09-25 15:13:22 +07:00
parent 4cfbea43ca
commit a93aca8a47
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ void trace_to_ascii_hex_dump(char* prefix, int len, char *data);
#define LWIP_PLATFORM_HTONS(x) __REV16(x)
#define LWIP_PLATFORM_HTONL(x) __REV(x)
// Provide inline replacements for htons() and htonl()
#define lwip_htons(x) __REV16(x)
#define lwip_htonl(x) __REV(x)
/* Define the memory area for the lwip's memory pools */
#ifndef MEMP_SECTION
#if defined(TARGET_LPC1768)