Allow compilation with icc 10.1.

Originally committed as revision 11889 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Carl Eugen Hoyos 2008-02-09 20:47:11 +00:00
parent c4c52acc36
commit 7ce3e4a882
1 changed files with 4 additions and 0 deletions

View File

@ -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