diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-13 12:56:56 -0500 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-13 12:59:33 -0500 |
commit | b22b1e425f530eeb16d2e1313c292fc61e991b08 (patch) | |
tree | 36392e019b5abd9582b7a711e106de8ca058b12f /lib | |
parent | ff7a4ffc9e87339baa6e02ad10563137cd381474 (diff) | |
download | gnulib-b22b1e425f530eeb16d2e1313c292fc61e991b08.tar.gz |
stdalign-tests: port to C23
* tests/test-stdalign.c: Do not test __alignas_is_defined,
_Alignof, or _Alignas as they are obsolescent.
Do not use __alignas_is_defined in C23 or later (or C++11 or later),
as it’s removed in C23.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/alignof.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/alignof.h b/lib/alignof.h index 3f4a54257d..41bab60378 100644 --- a/lib/alignof.h +++ b/lib/alignof.h @@ -22,8 +22,7 @@ /* alignof_slot (TYPE) Determine the alignment of a structure slot (field) of a given type, at compile time. Note that the result depends on the ABI. - This is the same as alignof (TYPE) and _Alignof (TYPE), defined in - <stdalign.h> if __alignof_is_defined is 1. + This is the same as alignof (TYPE) and _Alignof (TYPE). Note: The result cannot be used as a value for an 'enum' constant, due to bugs in HP-UX 10.20 cc and AIX 3.2.5 xlc. */ #if defined __cplusplus |