aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-10-09 19:05:20 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-10-14 23:04:29 +0100
commit69295f04a92ba99d4c2b210c77e80ab48e4be621 (patch)
tree678280f0f15eb3cd856133da19c05a1e28fe4f56 /paludis
parentb2fe0588bb37e5777575296a209b1a210968392e (diff)
downloadpaludis-69295f04a92ba99d4c2b210c77e80ab48e4be621.tar.gz
paludis-69295f04a92ba99d4c2b210c77e80ab48e4be621.tar.xz
Define a PALUDIS_ constant for big-endianness
This allows it to be referenced from headers, as we don't install config.h
Diffstat (limited to 'paludis')
-rw-r--r--paludis/util/elf.cc2
-rw-r--r--paludis/util/sha1.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/elf.cc b/paludis/util/elf.cc
index 9936e257b..760fe4f39 100644
--- a/paludis/util/elf.cc
+++ b/paludis/util/elf.cc
@@ -59,7 +59,7 @@ namespace paludis
enum {
native_byte_order =
-#if WORDS_BIGENDIAN
+#ifdef PALUDIS_BIG_ENDIAN
ELFDATA2MSB
#else
ELFDATA2LSB
diff --git a/paludis/util/sha1.cc b/paludis/util/sha1.cc
index 70920174f..135f111e4 100644
--- a/paludis/util/sha1.cc
+++ b/paludis/util/sha1.cc
@@ -35,7 +35,7 @@ using namespace paludis;
namespace
{
-#if WORDS_BIGENDIAN
+#ifdef PALUDIS_BIG_ENDIAN
inline uint32_t from_bigendian(uint32_t x)
{
return x;