Commit 076031ec authored by diego's avatar diego

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16786 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5313c04f
...@@ -264,6 +264,9 @@ if((y)<(x)){\ ...@@ -264,6 +264,9 @@ if((y)<(x)){\
#elif defined(__GNUC__) #elif defined(__GNUC__)
#define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) #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))) #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 #elif HAVE_INLINE_ASM
#error The asm code needs alignment, but we do not know how to do it for this compiler. #error The asm code needs alignment, but we do not know how to do it for this compiler.
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment