aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-01-25 19:51:07 +0000
committerDiego Biurrun <diego@biurrun.de>2009-01-25 19:51:07 +0000
commit0f73b510f0de7204e4fbc8a8c833be4e9546b3f6 (patch)
tree62561f176911a9997315d6da2d06f485e4f4b5a0
parent3bf96eec17e0d1d65d8fa7a1ef5fa6406578ff41 (diff)
downloadffmpeg-0f73b510f0de7204e4fbc8a8c833be4e9546b3f6.tar.gz
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
-rw-r--r--libavutil/internal.h3
1 files changed, 3 insertions, 0 deletions
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