From b24c4fab9e784bef401a38f3a9976b5db9b82394 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 11 Apr 2004 08:51:15 +0000 Subject: [PATCH] Fix for compilation on big endian systems. --- avilib-0.6.10/avidump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avilib-0.6.10/avidump.c b/avilib-0.6.10/avidump.c index 320fc4aa2..1d02cb401 100644 --- a/avilib-0.6.10/avidump.c +++ b/avilib-0.6.10/avidump.c @@ -55,8 +55,8 @@ ((x>>8) & 0x0000ff00) |\ ((x<<8) & 0x00ff0000) |\ ((x<<24) & 0xff000000)) -# define SWAP8(x) (( (SWAP4(x)<<32) & 0xffffffff00000000ULL) |\ - ( SWAP4(x)) +# define SWAP8(x) (((SWAP4(x)<<32) & 0xffffffff00000000ULL) |\ + (SWAP4(x))) #else # define SWAP2(a) (a) # define SWAP4(a) (a)