diff options
| author | Yonggang Luo <[email protected]> | 2022-09-20 16:43:05 +0800 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2022-10-17 10:35:21 +0200 |
| commit | 0e18267a05247b5bda60115270203b4ad3af8e55 (patch) | |
| tree | 4b14d75d4d88d13b30327772cfe74126dce4d6ea /libelf/elf32_xlatetof.c | |
| parent | 96263dfee3591a9c732b00a33a4a221b8f01bf46 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libelf/elf32_xlatetof.c')
| -rw-r--r-- | libelf/elf32_xlatetof.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf32_xlatetof.c b/libelf/elf32_xlatetof.c index 377659c8..ab857409 100644 --- a/libelf/elf32_xlatetof.c +++ b/libelf/elf32_xlatetof.c @@ -82,8 +82,8 @@ elfw2(LIBELFBITS, xlatetof) (Elf_Data *dest, const Elf_Data *src, and vice versa since the function only has to copy and/or change the byte order. */ - if ((__BYTE_ORDER == __LITTLE_ENDIAN && encode == ELFDATA2LSB) - || (__BYTE_ORDER == __BIG_ENDIAN && encode == ELFDATA2MSB)) + if ((BYTE_ORDER == LITTLE_ENDIAN && encode == ELFDATA2LSB) + || (BYTE_ORDER == BIG_ENDIAN && encode == ELFDATA2MSB)) { /* We simply have to copy since the byte order is the same. */ if (src->d_buf != dest->d_buf) |
