diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-03 15:16:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-03 15:16:50 +0200 |
commit | 30dc3b871c52e43a8d7dc340e51db4e37610e14c (patch) | |
tree | 236be0e4ca7af6b005e681972b42c295ac769dc2 /libs/ardour/sha1.c | |
parent | 469ead78f7d5c5868a77bbdfe89555fa28399fc5 (diff) |
fix byte-order detection for gcc < v4.4.
Diffstat (limited to 'libs/ardour/sha1.c')
-rw-r--r-- | libs/ardour/sha1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <endian.h> // 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 |