comparison mem.h @ 449:f150c3ca02d5 libavutil

Mark MSVC compiler macros as such.
author diego
date Wed, 13 Feb 2008 08:33:05 +0000
parents 41603959875e
children dd654d025ed5
comparison
equal deleted inserted replaced
448:41603959875e 449:f150c3ca02d5
30 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) 30 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
31 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v 31 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
32 #elif __GNUC__ 32 #elif __GNUC__
33 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) 33 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
34 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) 34 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n)))
35 #else 35 #elif _MSVC
36 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v 36 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
37 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v 37 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v
38 #endif 38 #endif
39 39
40 /** 40 /**