diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2022-09-20 16:43:05 +0800 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-10-17 10:35:21 +0200 |
commit | 0e18267a05247b5bda60115270203b4ad3af8e55 (patch) | |
tree | 4b14d75d4d88d13b30327772cfe74126dce4d6ea /src | |
parent | 96263dfee3591a9c732b00a33a4a221b8f01bf46 (diff) | |
download | elfutils-0e18267a05247b5bda60115270203b4ad3af8e55.tar.gz |
Strip __ prefix from __BYTE_ORDER __LITTLE_ENDIAN and __BIG_ENDIAN
__BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN are defined by the
gcc/clang preprocessor. BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN are
defined in <endian.h>.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/arlib.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9348c562..23c971d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2022-09-20 Yonggang Luo <luoyonggang@gmail.com> + + * arlib.h: Use BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN. + 2022-08-28 Mark Wielaard <mark@klomp.org> * ar.c (do_oper_extract): Predecrement instance before compare diff --git a/src/arlib.h b/src/arlib.h index e117166e..d4a42210 100644 --- a/src/arlib.h +++ b/src/arlib.h @@ -46,7 +46,7 @@ extern const struct argp_child arlib_argp_children[]; #define AR_HDR_WORDS (sizeof (struct ar_hdr) / sizeof (uint32_t)) -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if BYTE_ORDER == LITTLE_ENDIAN # define le_bswap_32(val) bswap_32 (val) #else # define le_bswap_32(val) (val) |