Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 28 Jul 2017 09:01:01 -0400
From: Rich Felker <>
Subject: Re: stdbool.h does not define _Bool when included by C++ code

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
> 	- <>
> 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.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.