refactor(build): remove unused stdlib function and include checks

In addition: merge some checks for the same feature into one
test_compile. This reduces the total number of test compiles
which speeds up the cmake configure stage.
This commit is contained in:
bfredl
2023-02-27 16:30:32 +01:00
committed by Björn Linse
parent fbaf5bde55
commit 166b149d5b
8 changed files with 43 additions and 53 deletions

View File

@@ -1446,7 +1446,7 @@ long getdigits_long(char **pp, bool strict, long def)
int32_t getdigits_int32(char **pp, bool strict, long def)
{
intmax_t number = getdigits(pp, strict, def);
#if SIZEOF_INTMAX_T > SIZEOF_INT32_T
#if SIZEOF_INTMAX_T > 4
if (strict) {
assert(number >= INT32_MIN && number <= INT32_MAX);
} else if (!(number >= INT32_MIN && number <= INT32_MAX)) {