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=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10603 invoked from network); 5 Jan 2021 01:49:05 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 5 Jan 2021 01:49:05 -0000 Received: (qmail 17420 invoked by uid 550); 5 Jan 2021 01:49:03 -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 16366 invoked from network); 5 Jan 2021 01:49:03 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org From: =?UTF-8?q?=C3=89rico=20Nogueira?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1609811330; bh=BAzeUNJkmZg7NigvM6Mcr8KfnquXbjEUzToBCgOXPmQ=; h=From:To:Cc:Subject:Date; b=V7ZyOXFF4MtNP4ENH+MbcUq8AWg4zjhVY6qN9zjDPj4o/Hs/mWSFZ4QPPLBZHe5VP kxlwRJtSGP9wBySYg7edtp/aaoY29Ys/YrgomkYrvxSSjtpHbzAFDN6aOnCfYYWkac Z1pb03Qz2QyEY7k3CycPrfztLLoKNUgaOApFTXilShAxQ4oObL6256tkT7mwTJJRii hEYV8N8tW2Q4NKScIhHEm8+Q5QF7grJlcEBVFkW4/RrdYTCsI/w+Tzyp72+eALa4O/ fR4qbdWjhS/HdPZSpfhyJAJUuo4hJTP0+cLIE4IVJzvcS25xUC0cwXDoDc1MnuzZhz tR4GEQR/P8bTQ== To: musl@lists.openwall.com Cc: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Mon, 4 Jan 2021 22:48:34 -0300 Message-Id: <20210105014834.13622-1-ericonr@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] guard isascii() macro when using C++ From: Érico Rolim otherwise one can get compilation errors in C++ code that uses isascii as an identifier this was spotted while building fceux --- include/ctype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ctype.h b/include/ctype.h index 7936536f..32bcef4d 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -64,7 +64,9 @@ int isascii(int); int toascii(int); #define _tolower(a) ((a)|0x20) #define _toupper(a) ((a)&0x5f) +#ifndef __cplusplus #define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128) +#endif #endif -- 2.29.2