forked from FFmpeg/FFmpeg
avutil/mem_internal: Don't use alignas for MSVC
MSVC messed up standard C features, again. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com> Reviewed-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
4fc43e45f9
commit
6e49b86996
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@
|
|||
#define DECLARE_ALIGNED_T(n,t,v) alignas(FFMIN(n, 16)) t v
|
||||
#define DECLARE_ASM_ALIGNED(n,t,v) alignas(FFMIN(n, 16)) t av_used v
|
||||
#define DECLARE_ASM_CONST(n,t,v) alignas(FFMIN(n, 16)) static const t av_used v
|
||||
#elif defined(_MSC_VER)
|
||||
#define DECLARE_ALIGNED_T(n,t,v) __declspec(align(n)) t v
|
||||
#define DECLARE_ASM_ALIGNED(n,t,v) __declspec(align(n)) t v
|
||||
#define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v
|
||||
#else
|
||||
#define DECLARE_ALIGNED_T(n,t,v) alignas(n) t v
|
||||
#define DECLARE_ASM_ALIGNED(n,t,v) alignas(n) t av_used v
|
||||
|
|
Loading…
Add table
Reference in a new issue