diff options
Diffstat (limited to 'sysdeps/nios2/bits/endian.h')
-rw-r--r-- | sysdeps/nios2/bits/endian.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/nios2/bits/endian.h b/sysdeps/nios2/bits/endian.h new file mode 100644 index 0000000..164f9e4 --- /dev/null +++ b/sysdeps/nios2/bits/endian.h @@ -0,0 +1,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 |