[SCM] libav/experimental: Make DECLARE_ALIGNED macros work with external array specifiers

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:58:16 UTC 2013


The following commit has been merged in the experimental branch:
commit 8a24e98d506f0f44ec58e06291fa0fce703fb6a8
Author: Måns Rullgård <mans at mansr.com>
Date:   Thu Jan 21 12:59:22 2010 +0000

    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

diff --git a/libavutil/mem.h b/libavutil/mem.h
index aa083a7..ec5d4f9 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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list