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