Merge pull request #15107 from DDC-NDRS/ndrs-pst

LWIP: Provide inline replacements for htons() and htonl()
pull/15120/head
Martin Kojtal 2021-09-29 10:37:11 +01:00 committed by GitHub
commit 4851f6c0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)