Hi hackers, Now that f5e0186f865c is in, I think that we can get rid of this pre-C11 define and just rely on the C11 _Alignof definition. That's done in the attached.
Note that e6be84356bbb already introduced the usage of _Noreturn in it. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
>From ad01d7be5eda081df62eb97b178e469c675d2026 Mon Sep 17 00:00:00 2001 From: Bertrand Drouvot <[email protected]> Date: Tue, 3 Feb 2026 09:21:05 +0000 Subject: [PATCH v1] Get rid of pre-C11 _Alignof define in zic.c Now that f5e0186f865c is in, we can get rid of this pre-C11 define and just rely on the C11 _Alignof definition. Note that e6be84356bbb already introduced the usage of _Noreturn in it. --- src/timezone/zic.c | 5 ----- 1 file changed, 5 deletions(-) 100.0% src/timezone/ diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 8dcc7b337a7..a8abf8825c7 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -49,11 +49,6 @@ typedef int_fast64_t zic_t; static ptrdiff_t const PTRDIFF_MAX = MAXVAL(ptrdiff_t, TYPE_BIT(ptrdiff_t)); #endif -/* The minimum alignment of a type, for pre-C11 platforms. */ -#if __STDC_VERSION__ < 201112 -#define _Alignof(type) offsetof(struct { char a; type b; }, b) -#endif - /* The type for line numbers. Use PRIdMAX to format them; formerly there was also "#define PRIdLINENO PRIdMAX" and formats used PRIdLINENO, but xgettext cannot grok that. */ -- 2.34.1
