[FFmpeg-devel] [PATCH] Simplify checks for particular GCC versions.

Diego Biurrun diego
Thu Oct 9 18:13:13 CEST 2008


On Thu, Oct 09, 2008 at 03:43:31PM +0200, Diego 'Flameeyes' Petten? wrote:
> 
> --- a/libavutil/common.h
> +++ b/libavutil/common.h
> @@ -41,8 +41,26 @@
>  
> +/* Check ICC first since it'll appear as GCC otherwise */
> +#if __ICC
> +# if __ICC >= 1010
> +   /* We know ICC 10.1 behaves like GCC 4.1 for us */
> +#  define FF_GCC_COMBVERSION ((4 << 24) + (1 << 16) + 0)
> +# else
> +#  define FF_GCC_COMBVERSION ((4 << 24) + (0 << 16) + 0)
> +# endif
> +#elif defined(__GNUC__)
> +# define FF_GCC_COMBVERSION                                             \
> +  ((__GNUC__ << 24) + (__GNUC_MINOR__ << 16) + __GNUC_PATCHLEVEL__)
> +#else
> +# define FF_GCC_COMBVERSION 0
> +#endif

This could be split into a separate patch.  Apart from that the patch
looks OK to me.

Diego




More information about the ffmpeg-devel mailing list