From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: stdbool.h does not define _Bool when included by C++ code
Date: Fri, 28 Jul 2017 09:01:01 -0400 [thread overview]
Message-ID: <20170728130101.GY1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <A256987C-DE95-405D-9F26-3C54CC3B20A2@mac.com>
On Fri, Jul 28, 2017 at 10:21:10PM +1200, Michael Clark wrote:
> Hi,
>
> I noticed an issue with the musl headers when installing
> compiler-explorer for RISC-V. Try compiling this code with g++ and
> musl's stdbool.h
>
> - https://cx.rv8.io/g/Bc3AwY <https://cx.rv8.io/>
>
> Compiler explorer uses the C++ front-end to the compiler by default
>
> It seems the musl stdbool.h defines bool in terms of _Bool for C,
> but does not define _Bool in terms of bool for C++.
>
> The gcc stdbool.h header handles both conditions and when included
> by C++ code it has #define _Bool bool but notes that it is a GNU
> extension.
I see; this is probably why I wasn't aware of it. I don't think it
would be objectionable to add.
Rich
next prev parent reply other threads:[~2017-07-28 13:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 10:21 Michael Clark
2017-07-28 13:01 ` Rich Felker [this message]
2017-07-31 9:18 ` Szabolcs Nagy
2017-07-31 9:46 ` Jens Gustedt
2017-07-31 21:06 ` Michael Clark
2017-08-01 1:31 ` Rich Felker
2017-08-01 7:24 ` Jens Gustedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170728130101.GY1627@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).