mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
otrx: add extra compilation check before using __BYTE_ORDER
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46106
This commit is contained in:
parent
0e5c445df6
commit
e0a3d9d115
@ -18,6 +18,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#if !defined(__BYTE_ORDER)
|
||||||
|
#error "Unknown byte order"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
#define cpu_to_le32(x) bswap_32(x)
|
#define cpu_to_le32(x) bswap_32(x)
|
||||||
#define le32_to_cpu(x) bswap_32(x)
|
#define le32_to_cpu(x) bswap_32(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user