1997-06-21 02:02:34 +00:00
|
|
|
/* The MIPS architecture has selectable endianness.
|
2015-02-18 18:51:37 +00:00
|
|
|
It exists in both little and big endian flavours and we
|
|
|
|
want to be able to share the installed header files between
|
|
|
|
both, so we define __BYTE_ORDER based on GCC's predefines. */
|
1997-06-21 02:02:34 +00:00
|
|
|
|
1997-11-26 04:14:44 +00:00
|
|
|
#ifndef _ENDIAN_H
|
|
|
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
|
|
|
#endif
|
|
|
|
|
2015-02-14 01:38:06 +00:00
|
|
|
#ifdef __MIPSEB
|
2003-03-29 08:15:29 +00:00
|
|
|
# define __BYTE_ORDER __BIG_ENDIAN
|
|
|
|
#endif
|
2015-02-17 18:04:33 +00:00
|
|
|
#ifdef __MIPSEL
|
2003-03-29 08:15:29 +00:00
|
|
|
# define __BYTE_ORDER __LITTLE_ENDIAN
|
|
|
|
#endif
|