Commit a12ef1d0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Explicit parenthesis when mixing && and ||

(cherry picked from commit b6e52e1f)
parent 65c64485
...@@ -562,7 +562,8 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin) ...@@ -562,7 +562,8 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin)
#endif #endif
static inline void barrier (void) 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 (); __sync_synchronize ();
#elif defined(__APPLE__) #elif defined(__APPLE__)
OSMemoryBarrier (); OSMemoryBarrier ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment