Mercurial > libavformat.hg
changeset 3970:c265c84caa81 libavformat
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%
author | gpoirier |
---|---|
date | Thu, 02 Oct 2008 20:01:13 +0000 |
parents | d3db5ee44053 |
children | eed7b7cb02a9 |
files | avformat.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)