comparison mem.h @ 454:909853728b47 libavutil

10l: Correctly use preprocessor conditionals. patch by Eddie Pang, eddpang gmail com
author diego
date Wed, 20 Feb 2008 18:48:49 +0000
parents dd654d025ed5
children ed36fc829044
comparison
equal deleted inserted replaced
453:5aec7a3442b1 454:909853728b47
27 #define FFMPEG_MEM_H 27 #define FFMPEG_MEM_H
28 28
29 #ifdef __ICC 29 #ifdef __ICC
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 defined(__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 #elif _MSVC 35 #elif defined(_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 #else 38 #else
39 #warning No align and asm directives, this might fail. 39 #warning No align and asm directives, this might fail.
40 #define DECLARE_ALIGNED(n,t,v) t v 40 #define DECLARE_ALIGNED(n,t,v) t v