[FFmpeg-devel] [PATCH] Allow compilation with icc
Diego Biurrun
diego
Sat Feb 9 13:15:25 CET 2008
On Sat, Feb 09, 2008 at 11:21:25AM +0100, Carl Eugen Hoyos wrote:
>
> Attached patch allows compilation of ffmpeg with icc 10.1.012.
>
> --- libavutil/mem.h (Revision 11882)
> +++ libavutil/mem.h (Arbeitskopie)
> @@ -28,7 +28,11 @@
>
> #ifdef __GNUC__
> #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
> +#ifdef __ICC
> + #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
> +#else
> #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n)))
> +#endif
> #else
Use #elif, this will save you the #else and the #endif.
Diego
More information about the ffmpeg-devel
mailing list