]> git.ipfire.org Git - thirdparty/tar.git/commit
Port intmax macro to strict C11
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 08:55:47 +0000 (00:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 23:10:48 +0000 (15:10 -0800)
commit0521528cdfbce4f00a2aa3b8623c916b257c9783
treefa4a4fc63143ff540f765cad225f0c6d4a355740
parent4e548d150cf4d8c8eb55d2aca9d466450dcaf4ba
Port intmax macro to strict C11

Needed for Apple clang version 14.0.0 (clang-1400.0.29.202).
* src/common.h (intmax): Define macro only if _Generic works, and
use _Generic in it rather that using EXPR_SIGNED.  This is needed
to make the first argument of verify_expr an integer constant
expression, which is required for strict C11.  Although GCC is
smart enough to treat (1 ? 0 : V) as an integer constant
expression even if V is an integer variable, C11 does not require
support for this sort of thing.
src/common.h