From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 555112200B for ; Sun, 21 Apr 2024 09:16:19 +0200 (CEST) Received: (qmail 13866 invoked by uid 550); 21 Apr 2024 07:16:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 13834 invoked from network); 21 Apr 2024 07:16:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O9R9Ose8gsO/DMO85tnm8eInf4HozXqYLsJogxZSGTw=; b=L/MADGc4fAbMTm36xnnBJCKPR24zKYtEV3gJhLhnJp3QhkiD158Q3rfI OoY9UXvfi+CQH+3iBHGxu9nrOGI33x0Fuz6PaDYN7KI2fdpItG4Ju1nrr UEf7tE3Mgbcr6jG/ePm2QT+zuuiaR6h3RmFd+k77pSTw6bRLRetYVKPqE s=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,217,1708383600"; d="scan'208";a="162577790" Date: Sun, 21 Apr 2024 09:16:05 +0200 From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt To: Markus Wichmann Cc: musl@lists.openwall.com Message-ID: <20240421091605.4b4e7d2e@inria.fr> In-Reply-To: References: <3KDMGHI91MHTL.24XCHF6E4X1XG@mforney.org> Organization: inria.fr X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Alignment attribute in headers Hi, on Sun, 21 Apr 2024 06:54:28 +0200 you (Markus Wichmann ) wrote: > =E2=80=A6 > #ifdef __GNUC__ > /* use attribute */ > #elif __STDC_VERSION >=3D 201100L /* I can never remember the month */ > /* use _Alignas */ > #elif __cplusplus >=3D 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 >=3D 202311L || __cplusplus >=3D 201100L /* use alignas */ #elif __STDC_VERSION >=3D 201100L /* use _Alignas */ #elif __GNUC__ /* use attribute */ #endif J=E2=82=91=E2=82=99=E2=82=9B --=20 :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Universit=C3=A9 de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: =E2=98=8E +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::