aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/byte_swap.hh
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-02-19 22:23:32 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-02-27 09:05:54 -0800
commitd8c09b5bebe3873a522e5dee920fba86ed46f9b9 (patch)
tree019e2b1bf6024b0b27c2221259b057e21873eb15 /paludis/util/byte_swap.hh
parent6d7c19f5759eac6f9ac8014b4bcdb8cb9b059bb7 (diff)
downloadpaludis-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.hh2
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)