From 23e09ee7eca0aa9b935ec92ad7b05db97760412b Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Tue, 9 Feb 2010 18:16:55 +0000 Subject: [PATCH] __builtin_offsetof() needs gcc >= 4 --- 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 40a0764f75..cd2dd01b77 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -548,7 +548,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ /**@}*/ \ /* VLC_OBJECT: attempt at doing a clever cast */ -#ifdef __GNUC__ +#if defined( __GNUC__ ) && __GNUC__ > 3 # ifndef __cplusplus # define VLC_OBJECT( x ) \ __builtin_choose_expr(__builtin_offsetof(__typeof__(*x), psz_object_type), \ -- 2.39.2