From 72ab9d7f604e3ef0f4f418a072d86602f9d9b10a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Petten=C3=B2?= Date: Thu, 2 Oct 2008 20:01:13 +0000 Subject: [PATCH] Use __typeof__ instead of GCC-specific typeof keyword. The typeof keyword is disabled by default when building with -std=c99 as it's a GNU extension. ICC supports the __typeof__ keyword as well as typeof. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Diego 'Flameeyes' Pettenò %flameeyes A gmail P com% Originally committed as revision 15527 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index cc8f36a..e11e788 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1123,8 +1123,8 @@ void ff_dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem); #ifdef __GNUC__ #define dynarray_add(tab, nb_ptr, elem)\ do {\ - typeof(tab) _tab = (tab);\ - typeof(elem) _elem = (elem);\ + __typeof__(tab) _tab = (tab);\ + __typeof__(elem) _elem = (elem);\ (void)sizeof(**_tab == _elem); /* check that types are compatible */\ ff_dynarray_add((unsigned long **)_tab, nb_ptr, (unsigned long)_elem);\ } while(0) -- 2.7.4