aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/elf.cc
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/elf.cc
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/elf.cc')
-rw-r--r--paludis/util/elf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/elf.cc b/paludis/util/elf.cc
index 3508f8f5b..f7a0a6fd8 100644
--- a/paludis/util/elf.cc
+++ b/paludis/util/elf.cc
@@ -59,7 +59,7 @@ namespace paludis
enum {
native_byte_order =
-#ifdef PALUDIS_BIG_ENDIAN
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
ELFDATA2MSB
#else
ELFDATA2LSB