comparison internal.h @ 624:e142a179745c libavutil

Drop _MSC_VER case from macro declaration. This compiler will never see our internal headers.
author diego
date Sun, 25 Jan 2009 19:24:47 +0000
parents 2ff7ac1e95dd
children ddcfe921388f
comparison
equal deleted inserted replaced
623:5a8d0e6cdcfb 624:e142a179745c
262 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) 262 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
263 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v 263 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
264 #elif defined(__GNUC__) 264 #elif defined(__GNUC__)
265 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) 265 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
266 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) 266 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n)))
267 #elif defined(_MSC_VER)
268 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
269 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v
270 #elif HAVE_INLINE_ASM 267 #elif HAVE_INLINE_ASM
271 #error The asm code needs alignment, but we do not know how to do it for this compiler. 268 #error The asm code needs alignment, but we do not know how to do it for this compiler.
272 #else 269 #else
273 #define DECLARE_ALIGNED(n,t,v) t v 270 #define DECLARE_ALIGNED(n,t,v) t v
274 #define DECLARE_ASM_CONST(n,t,v) static const t v 271 #define DECLARE_ASM_CONST(n,t,v) static const t v