common: Fix build on Big Endian systems. Patch by Dimitri John Ledkov.
This commit is contained in:
parent
aeeb1e3404
commit
fbfe2a5884
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue