From 0b529b0b7dfb4435dfb324a205c38b9befb9d30d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 1 Dec 2022 18:17:11 -0800 Subject: [PROPOSED] Add zic.c comment re __SUNPRO_C Suggested by Guy Harris in: https://mm.icann.org/pipermail/tz/2022-December/032395.html * zic.c (alignof): Add comment. --- zic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zic.c b/zic.c index 5612805..77417c6 100644 --- a/zic.c +++ b/zic.c @@ -66,7 +66,9 @@ enum { FORMAT_LEN_GROWTH_BOUND = 5 }; # define MKDIR_UMASK 0755 #endif -/* The minimum alignment of a type, for pre-C23 platforms. */ +/* The minimum alignment of a type, for pre-C23 platforms. + The __SUNPRO_C test is because Oracle Developer Studio 12.6 lacks + even though __STDC_VERSION__ == 201112. */ #if __STDC_VERSION__ < 201112 || defined __SUNPRO_C # define alignof(type) offsetof(struct { char a; type b; }, b) #elif __STDC_VERSION__ < 202311 -- 2.38.1