From 30dc3b871c52e43a8d7dc340e51db4e37610e14c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Aug 2015 15:16:29 +0200 Subject: fix byte-order detection for gcc < v4.4. --- libs/ardour/sha1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/sha1.c') diff --git a/libs/ardour/sha1.c b/libs/ardour/sha1.c index 3011abc9ae..fab3b372ed 100644 --- a/libs/ardour/sha1.c +++ b/libs/ardour/sha1.c @@ -38,7 +38,7 @@ # endif #elif !defined __LITTLE_ENDIAN__ # include // machine/endian.h -# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +# if (defined __BYTE_ORDER__ && defined __ORDER_BIG_ENDIAN__ && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) # define SHA_BIG_ENDIAN # endif #endif -- cgit v1.2.3