Commit 23e09ee7 authored by Gildas Bazin's avatar Gildas Bazin

__builtin_offsetof() needs gcc >= 4

parent 6f0b8197
...@@ -548,7 +548,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ ...@@ -548,7 +548,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
/**@}*/ \ /**@}*/ \
/* VLC_OBJECT: attempt at doing a clever cast */ /* VLC_OBJECT: attempt at doing a clever cast */
#ifdef __GNUC__ #if defined( __GNUC__ ) && __GNUC__ > 3
# ifndef __cplusplus # ifndef __cplusplus
# define VLC_OBJECT( x ) \ # define VLC_OBJECT( x ) \
__builtin_choose_expr(__builtin_offsetof(__typeof__(*x), psz_object_type), \ __builtin_choose_expr(__builtin_offsetof(__typeof__(*x), psz_object_type), \
......
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