[vlc-commits] include: enable built-in bit operations on Clang
Rémi Denis-Courmont
git at videolan.org
Sun Feb 11 14:13:09 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 11 15:08:23 2018 +0200| [d4c9575d0b857dfdb0633fdf97e149e7777fa379] | committer: Rémi Denis-Courmont
include: enable built-in bit operations on Clang
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4c9575d0b857dfdb0633fdf97e149e7777fa379
---
include/vlc_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 0a51662246..00b0e2fffa 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -570,7 +570,7 @@ static inline uint8_t clip_uint8_vlc( int32_t a )
* \defgroup bitops Bit operations
* @{
*/
-#ifdef __GNUC__
+#if defined (__GNUC__) || defined (__clang__)
# ifndef __cplusplus
# define clz(x) \
_Generic((x), \
More information about the vlc-commits
mailing list