blob: 164f9e4d785c16f3ff90f0ecf92f8e70dbef796c [file] [log] [blame]
xf.libfc6e712025-02-07 01:54:34 -08001/* The Nios II architecture has selectable endianness. */
2
3#ifndef _ENDIAN_H
4# error "Never use <bits/endian.h> directly; include <endian.h> instead."
5#endif
6
7#ifdef __nios2_big_endian__
8# define __BYTE_ORDER __BIG_ENDIAN
9#endif
10#ifdef __nios2_little_endian__
11# define __BYTE_ORDER __LITTLE_ENDIAN
12#endif