Re: bool: symbol name collision

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bryan Henderson <bryanh(at)giraffe-data(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: bool: symbol name collision
Date: 2010-05-10 13:09:08
Message-ID: 1273496948.11359.26.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On mån, 2010-05-10 at 02:02 +0100, Greg Stark wrote:
> I don't see any other conflicts offhand that would create problems
> using a c99 compiler to build server modules. It's quite annoying and
> sad that they added "bool" to c99 since otherwise it would just be a
> drop-in replacement with extra functionality and very low risk of
> conflicts. Instead they virtually guaranteed conflicts with any large
> software over a single define.

For that reason they put it into a separate header file stdbool.h that
no one is required to include.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Golub 2010-05-10 14:06:25 Re: BUG #5451: pg_restore doesn't close input .tar archive
Previous Message Peter Eisentraut 2010-05-10 12:39:13 Re: bool: symbol name collision