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 18688 invoked from network); 24 May 2023 13:48:00 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 13:48:00 -0000 Received: (qmail 15696 invoked by uid 550); 24 May 2023 13:44:34 -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 15624 invoked from network); 24 May 2023 13:44: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=yL73qyJrSrwZWC2hepThuahKIuc9Gxi2d8RIkjJBr2A=; b=CaB5C6SVdmMIia+q1mpQZXak022DbV8jrfCQQkiYxZ8KSw40XE2fR9YN CYmkNm0oLGs1fcUumnbDZREhQUrdRIfTK+nW9XNPgIYTrDC6UsqGk01iW xDGe9S5qls49r+D8ajvvSi60/aJBU2qxyVgJLvmVUWZN4HG/5IZw3cKKS 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.00,189,1681164000"; d="scan'208";a="109472305" Message-Id: <8fc3c1e71bfea50b582f1c9e57a53f8646010287.1684922674.git.Jens.Gustedt@inria.fr> In-Reply-To: References: From: Jens Gustedt Date: Wed, 3 May 2023 13:26:08 +0200 To: musl@lists.openwall.com Resent-Date: Wed, 24 May 2023 15:44:21 +0200 Resent-From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt Resent-Message-ID: <20230524154421.5849c6b0@inria.fr> Resent-To: musl@lists.openwall.com Subject: [musl] [C23 feature tests 2/6] C23: add a feature test for the __VA_OPT__ feature --- include/features.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/features.h b/include/features.h index 8e1d84e3..05abcadc 100644 --- a/include/features.h +++ b/include/features.h @@ -57,4 +57,8 @@ #define __REDIR(x,y) __typeof__(x) x __asm__(#y) +#define __has_VA_OPT2(_0, _1, ...) _1 +#define __has_VA_OPT1(...) __has_VA_OPT2(__VA_OPT__(,) 1, 0,) +#define __has_VA_OPT __has_VA_OPT1(C23) + #endif -- 2.34.1