[vlc-devel] commit: Use __typeof__ which works with any GNU C profile, not like typeof ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 5 16:42:03 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct  5 17:41:21 2009 +0300| [7c1fed031e8a0c3026f5f2e7e3fd3a470ce385b6] | committer: Rémi Denis-Courmont 

Use __typeof__ which works with any GNU C profile, not like typeof

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c1fed031e8a0c3026f5f2e7e3fd3a470ce385b6
---

 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 b771f99..e500cda 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -524,7 +524,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *,      /* variable's object */
 /* VLC_OBJECT: attempt at doing a clever cast */
 #ifdef __GNUC__
 # define VLC_OBJECT( x ) \
-    (((vlc_object_t *)(x))+0*(((typeof(x))0)->be_sure_to_add_VLC_COMMON_MEMBERS_to_struct))
+    (((vlc_object_t *)(x))+0*(((__typeof__(x))0)->be_sure_to_add_VLC_COMMON_MEMBERS_to_struct))
 #else
 # define VLC_OBJECT( x ) ((vlc_object_t *)(x))
 #endif




More information about the vlc-devel mailing list