Re: bool: symbol name collision

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bool: symbol name collision
Дата
Msg-id 5805.1273424286@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bool: symbol name collision  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: bool: symbol name collision
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: bool: symbol name collision
Следующее
От: Greg Stark
Дата:
Сообщение: Re: bool: symbol name collision