diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-07-03 19:31:47 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-07-03 19:31:47 +0000 |
commit | f6c15fd48a4bf9a3675dc4570f9a06eef0e04096 (patch) | |
tree | 334d4c1a45185e5f9e0f51caca62140dfa16f72b /libc/ports/sysdeps/tile/bits/endian.h | |
parent | 42ff400ccd43fb35542d788373cc4e6038c8b4a9 (diff) |
Merge changes between r19381 and r19447 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@19448 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/ports/sysdeps/tile/bits/endian.h')
-rw-r--r-- | libc/ports/sysdeps/tile/bits/endian.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/ports/sysdeps/tile/bits/endian.h b/libc/ports/sysdeps/tile/bits/endian.h new file mode 100644 index 000000000..43d94bb7a --- /dev/null +++ b/libc/ports/sysdeps/tile/bits/endian.h @@ -0,0 +1,13 @@ +/* Set endianness for tile. */ + +#ifndef _ENDIAN_H +# error "Never use <bits/endian.h> directly; include <endian.h> instead." +#endif + +#if defined __BIG_ENDIAN__ +# define __BYTE_ORDER __BIG_ENDIAN +#elif defined __LITTLE_ENDIAN__ +# define __BYTE_ORDER __LITTLE_ENDIAN +#else +# error "Endianness not declared!!" +#endif |