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

Rich Felker dalias
Wed Feb 13 09:37:47 CET 2008


On Wed, Feb 13, 2008 at 09:33:05AM +0100, diego wrote:
> Author: diego
> Date: Wed Feb 13 09:33:05 2008
> New Revision: 11918
> 
> Log:
> Mark MSVC compiler macros as such.
> 
> 
> Modified:
>    trunk/libavutil/mem.h
> 
> Modified: trunk/libavutil/mem.h
> ==============================================================================
> --- 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. :(

Rich




More information about the ffmpeg-cvslog mailing list