Back to index

glibc  2.9
endian.h
Go to the documentation of this file.
00001 /* The MIPS architecture has selectable endianness.
00002    Linux/MIPS exists in two both little and big endian flavours and we
00003    want to be able to share the installed headerfiles between both,
00004    so we define __BYTE_ORDER based on GCC's predefines.  */
00005 
00006 #ifndef _ENDIAN_H
00007 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
00008 #endif
00009 
00010 #ifdef __MIPSEB__
00011 # define __BYTE_ORDER __BIG_ENDIAN
00012 #else
00013 # ifdef __MIPSEL__
00014 #  define __BYTE_ORDER __LITTLE_ENDIAN
00015 # endif
00016 #endif