summaryrefslogtreecommitdiff
path: root/modules/stdalign
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-13 17:29:36 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-13 17:52:21 -0500
commit0804812cc2c659802fb8c070ab4f64957eb4e26c (patch)
tree88cc017b1969d3291d424e497e6df23dde66f389 /modules/stdalign
parent28465e160f242e39e6008e6de674e7c2360cf7df (diff)
downloadgnulib-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/stdalign3
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+