]> Savannah Git Hosting - gnulib.git/commit
stdalign: alignas and alignof are C23 keywords
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2022 22:29:36 +0000 (17:29 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2022 22:52:21 +0000 (17:52 -0500)
commit0804812cc2c659802fb8c070ab4f64957eb4e26c
tree88cc017b1969d3291d424e497e6df23dde66f389
parent28465e160f242e39e6008e6de674e7c2360cf7df
stdalign: alignas and alignof are C23 keywords

* m4/stdalign.m4 (gl_STDALIGN_H): Check also whether
alignas and alignof are keywords and so don’t need stdalign.h,
and define HAVE_C_ALIGNASOF if so.
If not, arrange for config.h to #define alignas and alignof
by including <stdalign.h>.
* modules/stdalign: No need to include <stdalign.h>.
* tests/test-stdalign.c: Do not include stdalign.h.
ChangeLog
doc/gnulib.texi
doc/posix-headers/stdalign.texi
m4/stdalign.m4
modules/stdalign
tests/test-stdalign.c