From: RĂ©mi Denis-Courmont Date: Fri, 19 Sep 2008 13:42:47 +0000 (+0300) Subject: Explicit parenthesis when mixing && and || X-Git-Tag: 1.0.0-pre1~3125 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b6e52e1f2193407e820ef0e88c043cccca3e25b4;p=vlc Explicit parenthesis when mixing && and || --- diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 406405e4a2..18397723ff 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -414,7 +414,8 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin) #endif static inline void barrier (void) { -#if defined (__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) +#if defined (__GNUC__) && \ + ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) __sync_synchronize (); #elif defined(__APPLE__) OSMemoryBarrier ();