From 0f73b510f0de7204e4fbc8a8c833be4e9546b3f6 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 25 Jan 2009 19:51:07 +0000 Subject: [PATCH] Restore _MSC_VER case in DECLARE_ALIGNED/DECLARE_ASM_CONST macro declaration. This compiler might be supported in the future or we might some day decide to export these macros. Originally committed as revision 16786 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/internal.h b/libavutil/internal.h index 76d3ffacf8..3c03bfbf79 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -264,6 +264,9 @@ if((y)<(x)){\ #elif defined(__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))) +#elif defined(_MSC_VER) + #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 #elif HAVE_INLINE_ASM #error The asm code needs alignment, but we do not know how to do it for this compiler. #else