common: Fix build on Big Endian systems. Patch by Dimitri John Ledkov.

This commit is contained in:
Solomon Peachy 2014-02-19 13:28:17 -05:00
parent aeeb1e3404
commit fbfe2a5884

View file

@ -68,7 +68,7 @@
uint16_t __x = (x); \
((uint16_t)( \
(((uint16_t)(__x) & (uint16_t)0x00ff) << 8) | \
(((uint16_t)(__x) & (uint16_t)0xff00) >> 8) | \
(((uint16_t)(__x) & (uint16_t)0xff00) >> 8))); \
})
#define be32_to_cpu(__x) __x
#define be16_to_cpu(__x) __x