summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/test-stdalign.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test-stdalign.c b/tests/test-stdalign.c
index ea07543802..a935554563 100644
--- a/tests/test-stdalign.c
+++ b/tests/test-stdalign.c
@@ -18,8 +18,6 @@
#include <config.h>
-#include <stdalign.h>
-
#include <stddef.h>
#include <stdint.h>