From 766324fc49cf47a7bb4e57fa69778acfe738d437 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 27 Jan 2008 20:50:16 +0000 Subject: Add and use DECLARE_ASM_CONST for constants used in assembler code. Should make it easier to work around compilation problems with e.g. ICC. Originally committed as revision 11641 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/mem.h') diff --git a/libavutil/mem.h b/libavutil/mem.h index 86953531d5..b9ff44d4f1 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -28,8 +28,10 @@ #ifdef __GNUC__ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) + #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) #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 #endif /** -- cgit v1.2.3