--- sourceforge.net/trunk/rdesktop/xwin.c 2001/09/15 13:03:35 34 +++ sourceforge.net/trunk/rdesktop/xwin.c 2001/09/15 14:01:45 35 @@ -149,10 +149,10 @@ return out; } -#define BSWAP16(x) x = (((x & 0xff) << 8) | (x >> 8)); -#define BSWAP24(x) x = (((x & 0xff) << 16) | (x >> 16) | ((x >> 8) & 0xff00)); -#define BSWAP32(x) x = (((x & 0xff00ff) << 8) | ((x >> 8) & 0xff00ff)); \ - x = (x << 16) | (x >> 16); +#define BSWAP16(x) { x = (((x & 0xff) << 8) | (x >> 8)); } +#define BSWAP24(x) { x = (((x & 0xff) << 16) | (x >> 16) | ((x >> 8) & 0xff00)); } +#define BSWAP32(x) { x = (((x & 0xff00ff) << 8) | ((x >> 8) & 0xff00ff)); \ + x = (x << 16) | (x >> 16); } static uint32 translate_colour(uint32 colour)