Skip to content

Commit 4851f6c

Browse files
authored
Merge pull request ARMmbed#15107 from DDC-NDRS/ndrs-pst
LWIP: Provide inline replacements for htons() and htonl()
2 parents 611ec14 + a93aca8 commit 4851f6c

File tree

1 file changed

+4
-0
lines changed
  • connectivity/lwipstack/lwip-sys/arch

1 file changed

+4
-0
lines changed

connectivity/lwipstack/lwip-sys/arch/cc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ void trace_to_ascii_hex_dump(char* prefix, int len, char *data);
124124
#define LWIP_PLATFORM_HTONS(x) __REV16(x)
125125
#define LWIP_PLATFORM_HTONL(x) __REV(x)
126126

127+
// Provide inline replacements for htons() and htonl()
128+
#define lwip_htons(x) __REV16(x)
129+
#define lwip_htonl(x) __REV(x)
130+
127131
/* Define the memory area for the lwip's memory pools */
128132
#ifndef MEMP_SECTION
129133
#if defined(TARGET_LPC1768)

0 commit comments

Comments
 (0)