From: Carl Eugen Hoyos Date: Thu, 2 Oct 2008 10:47:05 +0000 (+0000) Subject: Allow using DECLARE_ALIGNED with Sun cc. X-Git-Tag: v0.5~2316 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aaa0df02d3f3803a24a38faead836330ca074b74;p=platform%2Fupstream%2Flibav.git Allow using DECLARE_ALIGNED with Sun cc. Originally committed as revision 15509 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavutil/mem.h b/libavutil/mem.h index 149889b..a02c7e1 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -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__)