diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-27 20:30:24 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-29 14:49:29 +0200 |
commit | 1473afac5d11a0a90810b6cd8107d63640c9fd38 (patch) | |
tree | 3d7e20d8c126ebd58ab6aef74737fbb4059e397d /libavutil | |
parent | 46068070314d56f66b681796635d38d497ef3bda (diff) | |
download | ffmpeg-1473afac5d11a0a90810b6cd8107d63640c9fd38.tar.gz |
lavu/mem: clamp alignment to 16 for DJGPP
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index 718a143c4c..527cd03191 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -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 |