|
Message-ID: <20240421091605.4b4e7d2e@inria.fr> Date: Sun, 21 Apr 2024 09:16:05 +0200 From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr> To: Markus Wichmann <nullplan@....net> Cc: musl@...ts.openwall.com Subject: Re: Alignment attribute in headers Hi, on Sun, 21 Apr 2024 06:54:28 +0200 you (Markus Wichmann <nullplan@....net>) wrote: > … > #ifdef __GNUC__ > /* use attribute */ > #elif __STDC_VERSION >= 201100L /* I can never remember the month */ > /* use _Alignas */ > #elif __cplusplus >= 201100L > /* use alignas */ > #endif Since this is unified starting with C23 and I think we morally should have C conformance first and fallbacks only if imperatively needed I would go for #if __STDC_VERSION >= 202311L || __cplusplus >= 201100L /* use alignas */ #elif __STDC_VERSION >= 201100L /* use _Alignas */ #elif __GNUC__ /* use attribute */ #endif Jₑₙₛ -- :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Université de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.