Mercurial > libavutil.hg
changeset 447:945e9a276df9 libavutil
Allow compilation with icc 10.1.
author | cehoyos |
---|---|
date | Sat, 09 Feb 2008 20:47:11 +0000 |
parents | 81f4d434dc96 |
children | 41603959875e |
files | mem.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mem.h Sun Feb 03 21:56:13 2008 +0000 +++ b/mem.h Sat Feb 09 20:47:11 2008 +0000 @@ -28,7 +28,11 @@ #ifdef __GNUC__ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) +#ifdef __ICC + #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v +#else #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) +#endif #else #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