Allow using DECLARE_ALIGNED with Sun cc.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Thu, 2 Oct 2008 10:47:05 +0000 (10:47 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Thu, 2 Oct 2008 10:47:05 +0000 (10:47 +0000)
Originally committed as revision 15509 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/mem.h

index 149889b..a02c7e1 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef AVUTIL_MEM_H
 #define AVUTIL_MEM_H
 
-#ifdef __ICC
+#if defined(__ICC) || defined(__SUNPRO_C)
     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
     #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
 #elif defined(__GNUC__)