diff --git a/libavutil/mem.h b/libavutil/mem.h index b9ff44d4f1..3c7284dd00 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -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