bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with stdbool.h redefining true/false even in C++


From: Paul Eggert
Subject: Re: Problem with stdbool.h redefining true/false even in C++
Date: Wed, 29 Aug 2012 10:31:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/29/2012 10:16 AM, Michael Goffioul wrote:
\
> My GCC stdbool.h is quite different:
> 
> #ifndef __cplusplus
> 
> #define bool    _Bool
> #define true    1
> #define false   0

That's essentially what gnulib is doing as of today.
It does it with one more level of indirection,
but the same behavior as far as the users are concerned.

> It is/was a problem because the macros actually changed the type of "true" 
> and "false".

That's fixed in gnulib now, right?  Sorry, I'm still
not seeing a problem.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]