2 * libc/sysdeps/linux/microblaze/bits/endian.h -- Define processor endianess
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>
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.
12 * Written by Miles Bader <miles@gnu.org>
13 * Microblaze port by John Williams
17 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
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
26 # error "Endianness is unknown"