]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
changed C11 keyword to _Alignas
authorYann Collet <cyan@fb.com>
Wed, 5 Feb 2025 21:25:14 +0000 (13:25 -0800)
committerYann Collet <cyan@fb.com>
Wed, 5 Feb 2025 21:25:14 +0000 (13:25 -0800)
so that it doesn't depend on #include

lib/common/compiler.h

index 5ad212383376278366bb907ba47108c73c3599e3..66792463b912c44bd487d2db54ff2bdf7f7be87d 100644 (file)
@@ -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