From: Andreas Schlick Date: Sat, 2 Apr 2011 01:13:52 +0000 (+1030) Subject: hash: Extend the byte order check to cover x86_64. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=0a36c4014ffa3fc35d70f69303b6a9d3c697c693;hp=418cb41273ba4b8bcb07a7b310605107e35bf525 hash: Extend the byte order check to cover x86_64. --- diff --git a/ccan/hash/hash.c b/ccan/hash/hash.c index 01216ca0..a9948821 100644 --- a/ccan/hash/hash.c +++ b/ccan/hash/hash.c @@ -54,7 +54,8 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. #if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \ __BYTE_ORDER == __LITTLE_ENDIAN) || \ (defined(i386) || defined(__i386__) || defined(__i486__) || \ - defined(__i586__) || defined(__i686__) || defined(vax) || defined(MIPSEL)) + defined(__i586__) || defined(__i686__) || defined(__x86_64) || \ + defined(vax) || defined(MIPSEL)) # define HASH_LITTLE_ENDIAN 1 # define HASH_BIG_ENDIAN 0 #elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \