remove bogus LWIP_MAKE_U16() define and use PP_NTOHS() in ip4.c instead

This commit is contained in:
goldsimon
2016-12-07 12:44:57 +01:00
parent c87855423c
commit b31b0c8148
2 changed files with 2 additions and 9 deletions

View File

@@ -65,13 +65,6 @@ extern "C" {
#endif
#endif
/* Endianess-optimized shifting of two u8_t to create one u16_t */
#if BYTE_ORDER == LITTLE_ENDIAN
#define LWIP_MAKE_U16(a, b) ((a << 8) | b)
#else
#define LWIP_MAKE_U16(a, b) ((b << 8) | a)
#endif
#if BYTE_ORDER == BIG_ENDIAN
#define lwip_htons(x) (x)
#define lwip_ntohs(x) (x)