diff options
author | 2016-02-19 22:23:32 -0800 | |
---|---|---|
committer | 2016-02-27 09:05:54 -0800 | |
commit | d8c09b5bebe3873a522e5dee920fba86ed46f9b9 (patch) | |
tree | 019e2b1bf6024b0b27c2221259b057e21873eb15 /paludis/util/byte_swap.hh | |
parent | 6d7c19f5759eac6f9ac8014b4bcdb8cb9b059bb7 (diff) | |
download | paludis-d8c09b5bebe3873a522e5dee920fba86ed46f9b9.tar.gz paludis-d8c09b5bebe3873a522e5dee920fba86ed46f9b9.tar.xz |
clean up custom endian detection
Use compiler provided infrastructure for detecting the endian. This has been
supported in GCC since 4.6.
Diffstat (limited to 'paludis/util/byte_swap.hh')
-rw-r--r-- | paludis/util/byte_swap.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/byte_swap.hh b/paludis/util/byte_swap.hh index 2ba778644..4ba744c57 100644 --- a/paludis/util/byte_swap.hh +++ b/paludis/util/byte_swap.hh @@ -76,7 +76,7 @@ namespace paludis return byte_swap_internals::ByteSwap<sizeof(T_), T_>::swap(x); } -#ifdef PALUDIS_BIG_ENDIAN +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ template <typename T_> inline T_ from_bigendian(T_ x) |