glibc/sysdeps/unix/sysv/linux/mips/bits/endian.h

17 lines
484 B
C
Raw Normal View History

1997-07-12 23:32:57 +00:00
/* 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. */
#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif
1997-07-12 23:32:57 +00:00
#ifdef __MIPSEB__
# define __BYTE_ORDER __BIG_ENDIAN
1997-07-12 23:32:57 +00:00
#else
# ifdef __MIPSEL__
# define __BYTE_ORDER __LITTLE_ENDIAN
# endif
1997-07-12 23:32:57 +00:00
#endif