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
1 changed files with 1 additions and 1 deletions

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