summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/mips/bits/endian.h
blob: 9f60758f36c0482440329c95bb71a12c1c687722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* The MIPS architecture has selectable endianness.
   Linux/MIPS exists in two both little and big endian flavours and we
   want to be able to share the installed headerfiles between both,
   so we define __BYTE_ORDER based on GCC's predefines.  */

#ifdef __MIPSEB__
#define __BYTE_ORDER __BIG_ENDIAN
#else
#ifdef __MIPSEL__
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
#endif