diff options
author | Nathan Scott <nathans@sgi.com> | 2002-07-10 04:12:35 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2002-07-10 04:12:35 +0000 |
commit | bd866520bf49c99da6c71998b648e5d1494709ca (patch) | |
tree | d19e6e9d19d7cd4cf9230508db12b3065f6c9f43 /libacl | |
parent | 9bdebbfaba4dd81423844d077e9fa5165c74844f (diff) | |
download | acl-bd866520bf49c99da6c71998b648e5d1494709ca.tar.gz |
bump version, document changes.
Diffstat (limited to 'libacl')
-rw-r--r-- | libacl/byteorder.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libacl/byteorder.h b/libacl/byteorder.h index cc7dc26..e5c62c3 100644 --- a/libacl/byteorder.h +++ b/libacl/byteorder.h @@ -1,6 +1,6 @@ -#include "config.h" +#include <endian.h> -#ifdef WORDS_BIGENDIAN +#if __BYTE_ORDER == __BIG_ENDIAN # define cpu_to_le16(w16) le16_to_cpu(w16) # define le16_to_cpu(w16) ((u_int16_t)((u_int16_t)(w16) >> 8) | \ (u_int16_t)((u_int16_t)(w16) << 8)) @@ -9,10 +9,12 @@ (u_int32_t)(((u_int32_t)(w32) >> 8) & 0xFF00) | \ (u_int32_t)(((u_int32_t)(w32) << 8) & 0xFF0000) | \ (u_int32_t)( (u_int32_t)(w32) <<24)) -#else +#elif __BYTE_ORDER == __LITTLE_ENDIAN # define cpu_to_le16(w16) ((u_int16_t)(w16)) # define le16_to_cpu(w16) ((u_int16_t)(w16)) # define cpu_to_le32(w32) ((u_int32_t)(w32)) # define le32_to_cpu(w32) ((u_int32_t)(w32)) +#else +# error unknown endianess? #endif |