# HG changeset patch # User gpoirier # Date 1222977673 0 # Node ID c265c84caa8185049966699b54ff270a82d06183 # Parent d3db5ee440530013cc5c6d665de3817f9779ac3e 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. Patch by Diego 'Flameeyes' Petten %flameeyes A gmail P com% diff -r d3db5ee44053 -r c265c84caa81 avformat.h --- a/avformat.h Thu Oct 02 17:43:27 2008 +0000 +++ b/avformat.h Thu Oct 02 20:01:13 2008 +0000 @@ -1123,8 +1123,8 @@ #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)