Add Changelog ...
[glibc.git] / sysdeps / unix / sysv / linux / mips / bits / endian.h
blob0a3d2fabe36ad7f42d97628d9625a5c192208960
1 /* The MIPS architecture has selectable endianness.
2 Linux/MIPS exists in two both little and big endian flavours and we
3 want to be able to share the installed headerfiles between both,
4 so we define __BYTE_ORDER based on GCC's predefines. */
6 #ifndef _ENDIAN_H
7 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
8 #endif
10 #ifdef __MIPSEB__
11 # define __BYTE_ORDER __BIG_ENDIAN
12 #else
13 # ifdef __MIPSEL__
14 # define __BYTE_ORDER __LITTLE_ENDIAN
15 # endif
16 #endif