source: svn/trunk/newcon3bcm2_21bu/toolchain/mipsel-linux-uclibc/include/bits/endian.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 484 bytes
Line 
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.  */
5
6#ifndef _ENDIAN_H
7# error "Never use <bits/endian.h> directly; include <endian.h> instead."
8#endif
9
10#ifdef __MIPSEB__
11# define __BYTE_ORDER __BIG_ENDIAN
12#else
13# ifdef __MIPSEL__
14#  define __BYTE_ORDER __LITTLE_ENDIAN
15# endif
16#endif
Note: See TracBrowser for help on using the repository browser.