1 /* 2 * libc/sysdeps/linux/microblaze/bits/endian.h -- Define processor endianess 3 * 4 * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au> 5 * Copyright (C) 2001 NEC Corporation 6 * Copyright (C) 2001 Miles Bader <miles@gnu.org> 7 * 8 * This file is subject to the terms and conditions of the GNU Lesser 9 * General Public License. See the file COPYING.LIB in the main 10 * directory of this archive for more details. 11 * 12 * Written by Miles Bader <miles@gnu.org> 13 * Microblaze port by John Williams 14 */ 15 16 #ifndef _ENDIAN_H 17 # error "Never use <bits/endian.h> directly; include <endian.h> instead." 18 #endif 19 20 /* Note: Toolchain supplies _BIG_ENDIAN or _LITTLE_ENDIAN */ 21 #if defined(_BIG_ENDIAN) 22 # define __BYTE_ORDER __BIG_ENDIAN 23 #elif defined(_LITTLE_ENDIAN) 24 # define __BYTE_ORDER __LITTLE_ENDIAN 25 #else 26 # error "Endianness is unknown" 27 #endif 28