aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-21 12:59:22 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-21 12:59:22 +0000
commit8a24e98d506f0f44ec58e06291fa0fce703fb6a8 (patch)
tree9197c0d0e638c8ea1622ac2ae473801569ab2b0f /libavutil
parent2a58e457244025d21b1d07d62e3e8a61ef9af030 (diff)
downloadffmpeg-8a24e98d506f0f44ec58e06291fa0fce703fb6a8.tar.gz
Make DECLARE_ALIGNED macros work with external array specifiers
The macro implementation might need the name of the variable being declared for compiler-specific syntax. Moving array specifiers outside the macro invocation allows this to work. Originally committed as revision 21363 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/mem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index aa083a7496..ec5d4f9abe 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -29,11 +29,11 @@
#include "common.h"
#if defined(__ICC) || defined(__SUNPRO_C)
- #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
+ #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
#define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
#elif defined(__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)))
+ #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
+ #define DECLARE_ASM_CONST(n,t,v) static const t attribute_used __attribute__ ((aligned (n))) v
#elif defined(_MSC_VER)
#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