imgtec-ci20: genimage config/ u-boot env
[openadk.git] / adk / include / endian.h
blobbd94c4976e2d36d7323e608ad9fc821c92026864
1 #ifndef __endian_compat_h
2 #define __endian_compat_h
4 #if defined(__linux__) || defined(__CYGWIN__)
5 #include <byteswap.h>
6 #include_next <endian.h>
7 #elif defined(__APPLE__)
8 #include <machine/endian.h>
9 #include <machine/byte_order.h>
10 #elif defined(__FreeBSD__)
11 #include <sys/endian.h>
12 #elif defined(__OpenBSD__)
13 #include <sys/types.h>
14 #else
15 #include <machine/endian.h>
16 #endif
18 #ifndef __BYTE_ORDER
19 #define __BYTE_ORDER BYTE_ORDER
20 #endif
21 #ifndef __BIG_ENDIAN
22 #define __BIG_ENDIAN BIG_ENDIAN
23 #endif
24 #ifndef __LITTLE_ENDIAN
25 #define __LITTLE_ENDIAN LITTLE_ENDIAN
26 #endif
28 #endif