vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Jun 30 11:59:00 2015 +0200| [406f697d5592752efc8a0479e48512ed20ab274b] | committer: Jean-Baptiste Kempf
vlc_atomic.h: cosmetics for clang workaround > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=406f697d5592752efc8a0479e48512ed20ab274b --- include/vlc_atomic.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h index 00dd673..b90a797 100644 --- a/include/vlc_atomic.h +++ b/include/vlc_atomic.h @@ -26,11 +26,9 @@ * Atomic operations do not require locking, but they are not very powerful. */ -/* clang version < 7 lacks the header but supports atomics - work-around */ -#if defined(__clang__) -#if __clang_major__ >= 4 && !__has_include(<stdatomic.h>) -#define __STDC_NO_ATOMICS__ 1 -#endif +/* Clang version < 7 lacks the stdatomic.h header but supports atomics */ +#if defined(__clang__) && __clang_major__ >= 4 && !__has_include(<stdatomic.h>) +# define __STDC_NO_ATOMICS__ 1 #endif # ifndef __cplusplus _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
