Re: C++ interface build on FreeBSD 4.2 broken? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: C++ interface build on FreeBSD 4.2 broken?
Date
Msg-id Pine.LNX.4.30.0101201911260.1033-100000@peter.localdomain
Whole thread Raw
In response to Re: C++ interface build on FreeBSD 4.2 broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: C++ interface build on FreeBSD 4.2 broken?
List pgsql-hackers
Tom Lane writes:

> Peter Eisentraut <peter_e@gmx.net> writes:
> >> ../../../src/include/c.h:997: conflicting types for `int sys_nerr'
> >> /usr/include/stdio.h:224: previous declaration as `const int sys_nerr'
>
> > C++ apparently doesn't allow this, but C does.  So you have to put #ifndef
> > __cplusplus at the appropriate place in c.h.
>
> Er, what will you ifdef exactly,

+ #ifdef __cplusplus #ifdef HAVE_SYS_NERR extern int sys_nerr; #endif
+ #endif

> and what are the odds that it will fail on some other platform?

I don't see how it would fail.  At least it won't add more possible
failure cases.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: C++ interface build on FreeBSD 4.2 broken?
Next
From: Peter Eisentraut
Date:
Subject: Re: "initdb -t" destroys all databases