diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-13 17:29:36 -0500 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-13 17:52:21 -0500 |
commit | 0804812cc2c659802fb8c070ab4f64957eb4e26c (patch) | |
tree | 88cc017b1969d3291d424e497e6df23dde66f389 /modules/stdalign | |
parent | 28465e160f242e39e6008e6de674e7c2360cf7df (diff) | |
download | gnulib-0804812cc2c659802fb8c070ab4f64957eb4e26c.tar.gz |
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.
Diffstat (limited to 'modules/stdalign')
-rw-r--r-- | modules/stdalign | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/stdalign b/modules/stdalign index 24c79ec493..af038180fa 100644 --- a/modules/stdalign +++ b/modules/stdalign @@ -1,5 +1,5 @@ Description: -A <stdalign.h> that nearly conforms to ISO C11 and C++11. +alignas and alignof that are like C23 and C++11. Files: lib/stdalign.in.h @@ -30,7 +30,6 @@ endif MOSTLYCLEANFILES += stdalign.h stdalign.h-t Include: -<stdalign.h> License: LGPLv2+ |