erofs-utils: improve compatibility and reduce header conflicts
authorHongzhen Luo <hongzhen@linux.alibaba.com>
Mon, 24 Jun 2024 06:32:17 +0000 (14:32 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 24 Jun 2024 13:16:20 +0000 (21:16 +0800)
commit79f6e168d94cf2c7ebc46ebf97b13be663bcd270
treebfe6f527e6777b4155510260c950dad6b16bd441
parentd2e97bf6901e98cd8c6c4ce9dabe9b6357be3f78
erofs-utils: improve compatibility and reduce header conflicts

Adjust initializers of union in erofs-utils to ensure compatibility
with various compilers. The original C99 designated initializer style
was not supported in other compilers (e.g., C++11), leading to build
failures.  Additionally, change the codebase to minimize potential
conflicts with headers from other projects.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240624063217.170251-1-hongzhen@linux.alibaba.com
[ Gao Xiang: minor commit message update. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
include/erofs/defs.h
include/erofs/internal.h
include/erofs_fs.h
lib/compress.c
lib/inode.c
lib/io.c
lib/kite_deflate.c
lib/tar.c