[PROPOSED] Port better to glibc when used internally there

16 Oct
2024
16 Oct
'24
4:17 p.m.
I ran into this problem when compiling an experimental version of glibc, which uses tzcode internally. * private.h (static_assert): Override any definition a nonconforming implementation may provide. --- private.h | 1 + 1 file changed, 1 insertion(+) diff --git a/private.h b/private.h index c3304104..4b035ed7 100644 --- a/private.h +++ b/private.h @@ -51,6 +51,7 @@ #endif #if __STDC_VERSION__ < 202311 +# undef static_assert # define static_assert(cond) extern int static_assert_check[(cond) ? 1 : -1] #endif -- 2.43.0
152
Age (days ago)
152
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul Eggert