[vlc-commits] vlc_common.h: Fix VLC_OBJECT when building with clang
Hugo Beauzée-Luyssen
git at videolan.org
Wed Sep 14 18:54:42 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 14 18:10:31 2016 +0200| [fbaa27ae2d7fcf5ccee7f0ca424ec0cc5bf01f4c] | committer: Rémi Denis-Courmont
vlc_common.h: Fix VLC_OBJECT when building with clang
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fbaa27ae2d7fcf5ccee7f0ca424ec0cc5bf01f4c
---
include/vlc_common.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 5a6bf19..59988fa 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -476,7 +476,8 @@ struct vlc_common_members
#if !defined(__cplusplus) && (__STDC_VERSION__ >= 201112L)
# define VLC_OBJECT(x) \
_Generic((x)->obj, \
- struct vlc_common_members: (vlc_object_t *)(&(x)->obj) \
+ struct vlc_common_members: (vlc_object_t *)(&(x)->obj), \
+ const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \
)
#elif VLC_GCC_VERSION(4,0)
# ifndef __cplusplus
More information about the vlc-commits
mailing list