diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-06-06 16:11:00 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-06-06 16:11:00 +1000 |
commit | 16b83fe2f6b33e229ad7231987c18d494f91423f (patch) | |
tree | c453f28c921db84906794de086758e50806f611f /include/uapi/linux/byteorder/big_endian.h | |
parent | 804f89c3cb24aeee02aec4acc9201ba159aa52ed (diff) | |
parent | 88b28c8504ba11bf59c6a460a7f9ca3498530ceb (diff) | |
download | linux-next-16b83fe2f6b33e229ad7231987c18d494f91423f.tar.gz |
Merge branch 'akpm-current/current'
Diffstat (limited to 'include/uapi/linux/byteorder/big_endian.h')
-rw-r--r-- | include/uapi/linux/byteorder/big_endian.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/byteorder/big_endian.h b/include/uapi/linux/byteorder/big_endian.h index 2199adc6a6c2..3e58b717fb5a 100644 --- a/include/uapi/linux/byteorder/big_endian.h +++ b/include/uapi/linux/byteorder/big_endian.h @@ -2,6 +2,10 @@ #ifndef _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H #define _UAPI_LINUX_BYTEORDER_BIG_ENDIAN_H +#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__ +#error "Unsupported endianness, check your toolchain" +#endif + #ifndef __BIG_ENDIAN #define __BIG_ENDIAN 4321 #endif |