From: Yann Collet Date: Wed, 5 Feb 2025 21:25:14 +0000 (-0800) Subject: changed C11 keyword to _Alignas X-Git-Tag: v1.5.7^2~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf404c0ab73cb6cc822a1412b78ba7965f9d74d;p=thirdparty%2Fzstd.git changed C11 keyword to _Alignas so that it doesn't depend on #include --- 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