Blame sysdeps/mips/bits/endian.h

Packit 6c4009
/* The MIPS architecture has selectable endianness.
Packit 6c4009
   It exists in both little and big endian flavours and we
Packit 6c4009
   want to be able to share the installed header files between
Packit 6c4009
   both, so we define __BYTE_ORDER based on GCC's predefines.  */
Packit 6c4009
Packit 6c4009
#ifndef _ENDIAN_H
Packit 6c4009
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifdef __MIPSEB
Packit 6c4009
# define __BYTE_ORDER __BIG_ENDIAN
Packit 6c4009
#endif
Packit 6c4009
#ifdef __MIPSEL
Packit 6c4009
# define __BYTE_ORDER __LITTLE_ENDIAN
Packit 6c4009
#endif