initial commit
[glibc.git] / sysdeps / nios2 / bits / endianness.h
1 #ifndef _BITS_ENDIANNESS_H
2 #define _BITS_ENDIANNESS_H 1
3
4 #ifndef _BITS_ENDIAN_H
5 # error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6 #endif
7
8 /* Nios II has selectable endianness. */
9 #ifdef __nios2_big_endian__
10 # define __BYTE_ORDER __BIG_ENDIAN
11 #endif
12 #ifdef __nios2_little_endian__
13 # define __BYTE_ORDER __LITTLE_ENDIAN
14 #endif
15
16 #endif /* bits/endianness.h */