forked from Imagelibrary/lwip
Fixed compilation if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
/** Like the name says... */
|
/** Like the name says... */
|
||||||
#if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
|
#if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
|
||||||
/* little endian and PLATFORM_BYTESWAP defined */
|
/* little endian and PLATFORM_BYTESWAP defined */
|
||||||
#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(x)
|
#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(w)
|
||||||
#else
|
#else
|
||||||
/* can't use htons on big endian (or PLATFORM_BYTESWAP not defined)... */
|
/* can't use htons on big endian (or PLATFORM_BYTESWAP not defined)... */
|
||||||
#define SWAP_BYTES_IN_WORD(w) ((w & 0xff) << 8) | ((w & 0xff00) >> 8)
|
#define SWAP_BYTES_IN_WORD(w) ((w & 0xff) << 8) | ((w & 0xff00) >> 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user