From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27154 invoked from network); 31 May 2023 09:24:24 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 May 2023 09:24:24 -0000 Received: (qmail 1225 invoked by uid 550); 31 May 2023 09:23:35 -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 1085 invoked from network); 31 May 2023 09:23:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=nlY5GYIwU9WBVc+T8hnvpto9mEOdXyq3XSRlhZiNRY8=; b=ksVD7tNQ9hk6Xa1fE1ofI6EtknzA289NLaQo/wxNLyGkQBW8mDCsAUhM 8QusOl5F/B5kGkXp1//xm//PuAzmY7yu1m8+IKjcm15nATn/R/iNszRWB 2rLoWDv4j6prpuHyAE6J9gk//K6ItHHbTcxSXbJBjtBZJ5qdx7NUixnj4 Y=; Authentication-Results: mail3-relais-sop.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.00,205,1681164000"; d="scan'208";a="57428748" From: Jens Gustedt To: musl@lists.openwall.com Date: Wed, 31 May 2023 11:22:57 +0200 Message-Id: <83b3220596a37f3580f24cd531881f8423f8ba17.1685522953.git.Jens.Gustedt@inria.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [C23 divers headers 10/17] C23: remove the contents of stdalign.h This now has no contents because the features have been promoted to keywords. --- include/stdalign.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/stdalign.h b/include/stdalign.h index 2cc94be3..0f4f28ac 100644 --- a/include/stdalign.h +++ b/include/stdalign.h @@ -1,20 +1,25 @@ -#ifndef _STDALIGN_H -#define _STDALIGN_H +#ifndef __STDC_VERSION_STDALIGN_H__ +#define __STDC_VERSION_STDALIGN_H__ 202311L #ifndef __cplusplus /* this whole header only works in C11 or with compiler extensions */ #if __STDC_VERSION__ < 201112L && defined( __GNUC__) -#define _Alignas(t) __attribute__((__aligned__(t))) -#define _Alignof(t) __alignof__(t) +# define _Alignas(t) __attribute__((__aligned__(t))) +# define _Alignof(t) __alignof__(t) #endif +#if __STDC_VERSION__ < 202311L #define alignas _Alignas #define alignof _Alignof - #endif +/* Starting with C23 this header has no contents because these are keywords. */ +#if __STDC_VERSION__ < 202311L #define __alignas_is_defined 1 #define __alignof_is_defined 1 +#endif + +#endif #endif -- 2.34.1