diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-25 16:10:53 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-25 16:13:10 -0800 |
commit | bcbb26050fe764bb476a08f5b3087c78159d3913 (patch) | |
tree | dfbf893c45c82ddc897a0034c0fda60b13b5c6ac | |
parent | d8425fccd3c0452491faa32aa46efb2d31469e2d (diff) | |
download | gzip-bcbb26050fe764bb476a08f5b3087c78159d3913.tar.gz |
gzip: port alignas usage to C23
* gzip.c (BUFFER_ALIGNED): Do not depend on __alignas_is_defined
as that has been removed from C23.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | gzip.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ GNU gzip NEWS -*- outline -*- [bug present since the beginning] Port to C23, which does not allow K&R-style function definitions - with parameters. + with parameters, and which does not define __alignas_is_defined. * Noteworthy changes in release 1.12 (2022-04-07) [stable] @@ -134,7 +134,7 @@ static char const *const license_msg[] = { windows; the alignment requirement is 4096. On other platforms alignment doesn't hurt, and alignment up to 4096 is portable so let's do that. */ -#ifdef __alignas_is_defined +#if defined HAVE_C_ALIGNASOF || defined alignas # define BUFFER_ALIGNED alignas (4096) #else # define BUFFER_ALIGNED /**/ |