diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:56:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:56:16 +0200 |
commit | 4f4b92ba7ae9c56cb0f181d5f95d709e085b8bd5 (patch) | |
tree | b50f5df4563b99d893c88d5ed9bd58d88c8ac04f /src/shared/gpt.h | |
parent | ce0f1493c399178a3c7796415bfe5abd105ad610 (diff) |
always check for __BYTE_ORDER == __BIG_ENDIAN when checking for endianess
Let's always stick to glibc's way to determine byte order, and not mix
autoconf-specific checks with gcc checks.
Diffstat (limited to 'src/shared/gpt.h')
-rw-r--r-- | src/shared/gpt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/gpt.h b/src/shared/gpt.h index 64090e0e9b..278940bf03 100644 --- a/src/shared/gpt.h +++ b/src/shared/gpt.h @@ -42,10 +42,10 @@ # define GPT_ROOT_NATIVE GPT_ROOT_X86 #endif -#if defined(__aarch64__) && !defined(WORDS_BIGENDIAN) +#if defined(__aarch64__) && (__BYTE_ORDER != __BIG_ENDIAN) # define GPT_ROOT_NATIVE GPT_ROOT_ARM_64 # define GPT_ROOT_SECONDARY GPT_ROOT_ARM -#elif defined(__arm__) && !defined(WORDS_BIGENDIAN) +#elif defined(__arm__) && (__BYTE_ORDER != __BIG_ENDIAN) # define GPT_ROOT_NATIVE GPT_ROOT_ARM #endif |