[FFmpeg-cvslog] r11918 - trunk/libavutil/mem.h

Diego Biurrun diego
Wed Feb 13 09:38:49 CET 2008


On Wed, Feb 13, 2008 at 03:37:47AM -0500, Rich Felker wrote:
> On Wed, Feb 13, 2008 at 09:33:05AM +0100, diego wrote:
> > 
> > Log:
> > Mark MSVC compiler macros as such.
> > 
> > --- trunk/libavutil/mem.h	(original)
> > +++ trunk/libavutil/mem.h	Wed Feb 13 09:33:05 2008
> > @@ -32,7 +32,7 @@
> >  #elif __GNUC__
> >    #define DECLARE_ALIGNED(n,t,v)       t v __attribute__ ((aligned (n)))
> >    #define DECLARE_ASM_CONST(n,t,v)     static const t v attribute_used __attribute__ ((aligned (n)))
> > -#else
> > +#elif _MSVC
> >    #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
> >    #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
> >  #endif
> 
> We need a new default case then. Otherwise it's still broken on
> non-GNU compilers. :(

Done 3 minutes later, I just split the commits :)

Diego




More information about the ffmpeg-cvslog mailing list