Re: bool: symbol name collision - Mailing list pgsql-bugs

From Tom Lane
Subject Re: bool: symbol name collision
Date
Msg-id 5805.1273424286@sss.pgh.pa.us
Whole thread Raw
In response to Re: bool: symbol name collision  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: bool: symbol name collision
List pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> On sön, 2010-05-09 at 11:35 -0400, Tom Lane wrote:
>> ... we consider building server extensions with C++ to be
>> unsupported anyway.

> Um, our code has

> #ifndef __cplusplus

> #ifndef bool
> typedef char bool;
> #endif

> etc.

Yeah, I know those #if's are there, but whether they actually do
anything useful is highly questionable.  There is no reason to assume
that a compiler's built-in version of bool will be bit-compatible with
ours.  And changing the width of bool is guaranteed to Not Work.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: bool: symbol name collision
Next
From: Greg Stark
Date:
Subject: Re: bool: symbol name collision