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 27257 invoked from network); 31 May 2023 09:25:01 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 May 2023 09:25:01 -0000 Received: (qmail 1532 invoked by uid 550); 31 May 2023 09:23:39 -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 1097 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=/0yGrFFb7BJ7DxRS9QyWpf6LfC+EqER7Q1R2kWNg4GI=; b=X5nS5Qkuf23CmZ4/yjiyqPpL0i/PDxctuc/hrWSR2V1ZEYggleciTm0c 1muelCHWYbb/GeEZciJmp9bMmRLAxR0KzkdCDjHbXn5Tvg8Vas4fJaeQX baEADu+LrH79mbsavIycBrtPrcTpokp1uamlA67E5e8PjYV1qgPN7xUoL U=; 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="57428750" From: Jens Gustedt To: musl@lists.openwall.com Date: Wed, 31 May 2023 11:22:58 +0200 Message-Id: <1c0cb3cdbbd685cf6a02188099ece6573a8704c7.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 11/17] C23: remove the static_assert macro This is now a keyword. --- include/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/assert.h b/include/assert.h index d14ec94e..71007a10 100644 --- a/include/assert.h +++ b/include/assert.h @@ -8,8 +8,8 @@ #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) #endif -#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus) -#define static_assert _Static_assert +#if __STDC_VERSION__ >= 201112L && __STDC_VERSION__ < 202311L && !defined(__cplusplus) +# define static_assert _Static_assert #endif #ifdef __cplusplus -- 2.34.1