1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00

shared: avoid x86_64-specific size assertion on x32

Fixes: https://github.com/systemd/systemd/issues/21713
This commit is contained in:
Mike Gilbert 2021-12-09 15:26:33 -05:00 committed by Zbigniew Jędrzejewski-Szmek
parent e67a5c14f0
commit 9dc78edccc

View File

@ -121,7 +121,7 @@ struct JsonVariant {
/* Let's make sure this structure isn't increased in size accidentally. This check is only for our most relevant arch
* (x86-64). */
#ifdef __x86_64__
#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8
assert_cc(sizeof(JsonVariant) == 40U);
assert_cc(INLINE_STRING_MAX == 7U);
#endif