aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nios2/bits/endian.h
blob: 164f9e4d785c16f3ff90f0ecf92f8e70dbef796c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* The Nios II architecture has selectable endianness.  */

#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif

#ifdef __nios2_big_endian__
# define __BYTE_ORDER __BIG_ENDIAN
#endif
#ifdef __nios2_little_endian__
# define __BYTE_ORDER __LITTLE_ENDIAN
#endif