mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 05:33:15 +00:00
12 lines
305 B
C
12 lines
305 B
C
/* 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 |