[FFmpeg-devel] [PATCH] Allow compilation with icc

Carl Eugen Hoyos cehoyos
Sat Feb 9 13:58:52 CET 2008


Diego Biurrun <diego <at> biurrun.de> writes:

> > --- 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.

Sorry, I don't understand where I could use #elif. Could you explain?

Thank you, Carl Eugen






More information about the ffmpeg-devel mailing list