1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Add ersatz _Static_assert on older C hosts

* misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
pre-C11 C platform that is not known to support _Static_assert.
This commit is contained in:
Paul Eggert
2015-02-05 15:52:20 -08:00
parent f96ec27aa9
commit 3999d26ead
3 changed files with 14 additions and 1 deletions

View File

@@ -113,7 +113,6 @@ __END_DECLS
#if defined __USE_ISOC11 && !defined __cplusplus
/* Static assertion. Requires support in the compiler. */
# undef static_assert
# define static_assert _Static_assert
#endif