[FFmpeg-cvslog] r15527 - trunk/libavformat/avformat.h

gpoirier subversion
Thu Oct 2 22:01:13 CEST 2008


Author: gpoirier
Date: Thu Oct  2 22:01:13 2008
New Revision: 15527

Log:
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%


Modified:
   trunk/libavformat/avformat.h

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Thu Oct  2 22:01:13 2008
@@ -1123,8 +1123,8 @@ void ff_dynarray_add(unsigned long **tab
 #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)




More information about the ffmpeg-cvslog mailing list