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,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19802 invoked from network); 24 May 2023 14:02:39 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 14:02:39 -0000 Received: (qmail 31956 invoked by uid 550); 24 May 2023 14:01:36 -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 31765 invoked from network); 24 May 2023 14:01:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:in-reply-to:references:from:date:to: resent-date:resent-from:subject:resent-message-id: resent-to; bh=x5LDOaiF+rgW00tPeb3iN7VnDFfsbqpkPEuQkeXa7ME=; b=SquzWR3zCYeNFq4/tQQYdrcGCSkAIXfGsP4CzHesLqZQjGHPNsxM3RDS 3w4vSPTyFOwGf9+XZ7cnF464ZRllb+NLF2gDsSW8tkc7b4kRt+QSdulTp 9i3f0vCM2i3yAVqbW3OvmeEBwvm6x+lIk4bXevzRDR2e3qIEt8/iIyUkU o=; 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,189,1681164000"; d="scan'208";a="56883721" Message-Id: In-Reply-To: References: From: Jens Gustedt Date: Wed, 19 Apr 2023 10:16:33 +0200 To: musl@lists.openwall.com Resent-Date: Wed, 24 May 2023 15:57:59 +0200 Resent-From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt Resent-Message-ID: <20230524155759.7b65cea2@inria.fr> Resent-To: musl@lists.openwall.com Subject: [musl] [C23 divers headers 09/17] C23: update stdbool.h C23 has false, true and bool as keywords, so this file is basically not needed for modern applications. It is only provided for backwards compatibility. Implementations may also provide macros in addition to the keywords, so we do that because some user code may rely on these. --- include/stdbool.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/stdbool.h b/include/stdbool.h index a9d7ab78..d9df7524 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -1,11 +1,17 @@ -#ifndef _STDBOOL_H -#define _STDBOOL_H +#ifndef __STDC_VERSION_STDBOOL_H__ +#define __STDC_VERSION_STDBOOL_H__ 202311L #ifndef __cplusplus +#if __STDC_VERSION__ >= 202311L +#define true true +#define false false +#define bool bool +#else #define true 1 #define false 0 #define bool _Bool +#endif #endif -- 2.34.1