blob: ebf95df702bd9db989fe4a76ad14b360c3c338eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#if defined(__LITTLE_ENDIAN__)
#error "__LITTLE_ENDIAN__ defined!"
#endif
#if (__BIG_ENDIAN__ != 1)
#error "__BIG_ENDIAN__ not correctly defined!"
#endif
#if (__BYTE_ORDER__ != __ORDER_BIG_ENDIAN__)
#error "__BYTE_ORDER__ not correctly defined!"
#endif
/*
* check-name: endian-big.c
* check-command: sparse -mbig-endian $file
*/
|