OSDN Git Service

Allow compilation with icc 10.1.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 9 Feb 2008 20:47:11 +0000 (20:47 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 9 Feb 2008 20:47:11 +0000 (20:47 +0000)
Originally committed as revision 11889 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/mem.h

index b9ff44d..3c7284d 100644 (file)
 
 #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