From 831afe098fc6f6017b90fa7fa4acb11a83e0374e Mon Sep 17 00:00:00 2001 From: Petr Sumbera Date: Thu, 15 Mar 2018 02:41:23 -0700 Subject: [PATCH] Fixes Solaris build. On Solaris /usr/include/sys/isa_defs.h defines _LITTLE_ENDIAN or _BIG_ENDIAN without any value. --- src/PMurHash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PMurHash.c b/src/PMurHash.c index 0175012..a61173a 100644 --- a/src/PMurHash.c +++ b/src/PMurHash.c @@ -91,9 +91,9 @@ on big endian machines, or a byte-by-byte read if the endianess is unknown. /* gcc 'may' define __LITTLE_ENDIAN__ or __BIG_ENDIAN__ to 1 (Note the trailing __), * or even _LITTLE_ENDIAN or _BIG_ENDIAN (Note the single _ prefix) */ #if !defined(__BYTE_ORDER) - #if defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__==1 || defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN==1 + #if defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__==1 || defined(_LITTLE_ENDIAN) #define __BYTE_ORDER __LITTLE_ENDIAN - #elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__==1 || defined(_BIG_ENDIAN) && _BIG_ENDIAN==1 + #elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__==1 || defined(_BIG_ENDIAN) #define __BYTE_ORDER __BIG_ENDIAN #endif #endif