[vlc-devel] commit: __builtin_offsetof() needs gcc >= 4 (Gildas Bazin )
git version control
git at videolan.org
Tue Feb 9 19:19:10 CET 2010
vlc | branch: master | Gildas Bazin <gbazin at videolan.org> | Tue Feb 9 18:16:55 2010 +0000| [23e09ee7eca0aa9b935ec92ad7b05db97760412b] | committer: Gildas Bazin
__builtin_offsetof() needs gcc >= 4
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23e09ee7eca0aa9b935ec92ad7b05db97760412b
---
include/vlc_common.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 40a0764..cd2dd01 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), \
More information about the vlc-devel
mailing list