octave-maintainers
[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: Michael Goffioul
Subject: Re: Problem with stdbool.h redefining true/false even in C++
Date: Wed, 29 Aug 2012 22:07:25 +0100

On Wed, Aug 29, 2012 at 6:31 PM, Paul Eggert <address@hidden> wrote:
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? 

Yes, it is (or should be, I didn't test yet). Thanks for that.

Michael.


reply via email to

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