]> git.sesse.net Git - ffmpeg/commitdiff
lavu/mem: clamp alignment to 16 for DJGPP
authorClément Bœsch <u@pkh.me>
Mon, 27 Mar 2017 18:30:24 +0000 (20:30 +0200)
committerClément Bœsch <u@pkh.me>
Wed, 29 Mar 2017 12:49:29 +0000 (14:49 +0200)
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208

libavutil/mem.h

index 718a143c4c64e267bcf8f205d4648986b7ae6b9e..527cd03191a90927780291ada6394a9414a6750f 100644 (file)
@@ -97,6 +97,9 @@
     #define DECLARE_ASM_CONST(n,t,v)                    \
         AV_PRAGMA(DATA_ALIGN(v,n))                      \
         static const t __attribute__((aligned(n))) v
+#elif defined(__DJGPP__)
+    #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (FFMIN(n, 16)))) v
+    #define DECLARE_ASM_CONST(n,t,v)    static const t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
 #elif defined(__GNUC__) || defined(__clang__)
     #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (n))) v
     #define DECLARE_ASM_CONST(n,t,v)    static const t av_used __attribute__ ((aligned (n))) v