[FFmpeg-devel] [PATCH] Allow compilation with icc
Diego Biurrun
diego
Sat Feb 9 14:05:26 CET 2008
On Sat, Feb 09, 2008 at 12:58:52PM +0000, Carl Eugen Hoyos wrote:
> 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?
Ignore my comment, I misread your patch.
Diego
More information about the ffmpeg-devel
mailing list