Commit fbaa27ae authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rémi Denis-Courmont

vlc_common.h: Fix VLC_OBJECT when building with clang

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent 53b76149
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment