From bcf404c0ab73cb6cc822a1412b78ba7965f9d74d Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 5 Feb 2025 13:25:14 -0800 Subject: [PATCH] changed C11 keyword to _Alignas so that it doesn't depend on #include --- lib/common/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/compiler.h b/lib/common/compiler.h index 5ad212383..66792463b 100644 --- a/lib/common/compiler.h +++ b/lib/common/compiler.h @@ -305,7 +305,7 @@ MEM_STATIC int ZSTD_isPower2(size_t u) { # if defined(__GNUC__) # define ZSTD_ALIGNED(a) __attribute__((aligned(a))) # elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */ -# define ZSTD_ALIGNED(a) alignas(a) +# define ZSTD_ALIGNED(a) _Alignas(a) #elif defined(_MSC_VER) # define ZSTD_ALIGNED(n) __declspec(align(n)) # else