]> git.ipfire.org Git - thirdparty/zstd.git/commit
move the alignment macro to compiler.h
authorYann Collet <cyan@fb.com>
Thu, 2 Dec 2021 19:20:01 +0000 (11:20 -0800)
committerYann Collet <cyan@fb.com>
Thu, 2 Dec 2021 19:20:01 +0000 (11:20 -0800)
commit80a13fd64555e2be571a0436a3fae0dd867ce626
treeca8817e1e68c15ecac0a361852c873f136176a3e
parentffbdc8ac575652d3609f317e93d1604f568d92f2
move the alignment macro to compiler.h

because mem.h is dropped in the Linux kernel.

Changed macro definition order (gcc/clang/msvc before c11)
due to a limitation in the kernel source builder.

Changed the backup to sizeof(),
reverting to previous behavior when no support of alignof() is detected.
lib/common/compiler.h
lib/common/mem.h