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=-2.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE 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 A481025C9B for ; Thu, 25 Jan 2024 15:15:33 +0100 (CET) Received: (qmail 19483 invoked by uid 550); 25 Jan 2024 14:13:20 -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 18421 invoked from network); 25 Jan 2024 14:13:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zdiv.net; s=23; t=1706192120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NJ96ZKc9/uquIsU+YLtxCSXqNLod/fKskUq+B4aPexo=; b=BgzQ0sTgo8TcEKa93duLUQ3Z98ORMenqaGWKCOjarotJhceMCNfcjEr2ZIQW/yLaIBgIgC MfuOGhQRPdWW7URJtUm7PclFVhOacOABkCxpYBbDtqcM3i/S8DpgTjnLQn+0n1ztmDU+E3 IvU/1BWNPJYz+l5Uk2VKGSF2WsOcLBv4FsawERILpBe6bpe0SOL9/55Unw3J3cszAn1Li4 3tkqE+HvB6H857EuVKeWAt5QzpSa6isaUPZkk5VFNt8RSVIj07bo8P7hmVOXdq9p7f0MeD S13eeeGYssLe57XAMLUEtRDCTY5B27SgQFEnJlDiI8hrk0bwpgtcPKLg4fYVaA== From: Jules Maselbas To: musl@lists.openwall.com Cc: Jules Maselbas Date: Thu, 25 Jan 2024 15:14:40 +0100 Message-ID: <20240125141440.13906-1-jmaselbas@zdiv.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH v2] prevent from redefining __STDC_UTF_{16,32}__ macros Undefine any previous __STDC_UTF_{16,32}__ macros before defining them to prenvent any warnings of redefining macros. --- v2: - changed `#if !define(...)` guard to `#undef`, as suggested by Rich Felker I encountered this "issue" trying to compile a program with the -isystem option to override toolchain/installed musl headers with one from source. include/stdc-predef.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/stdc-predef.h b/include/stdc-predef.h index af1a2799..5ccd884d 100644 --- a/include/stdc-predef.h +++ b/include/stdc-predef.h @@ -7,7 +7,10 @@ #define __STDC_IEC_559__ 1 #endif +#undef __STDC_UTF_16__ #define __STDC_UTF_16__ 1 + +#undef __STDC_UTF_32__ #define __STDC_UTF_32__ 1 #endif -- 2.43.0