Re: 7.2b5 libpq++ include files broken? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 7.2b5 libpq++ include files broken?
Date
Msg-id 15186.1011714619@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.2b5 libpq++ include files broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Create a rule for updating on a view
List pgsql-bugs
I wrote:
> Reinhard Max <max@suse.de> writes:
>> as of 7.2b5 'libpq++.h' includes 'libpq++/pgconnection.h' which in
>> turn tries to include 'postgres_fe.h' which can't be found because it
>> has bee moved to the 'internal' subdirectory.

> Why was it moved to the internal subdirectory?

After playing with this a bit, I see that postgres_fe.h is just a
wrapper around c.h, which we probably don't want to move out of
internal.  So relocating the file won't help.

AFAICT the only reason pgconnection.h includes postgres_fe.h is that
it needs DLLIMPORT.  So a possible solution is to move DLLIMPORT's
definition out of c.h and into pg_config.h --- or even better, put
the nontrivial cases into the appropriate pg_config_os.h file.
Comments?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.2b5 libpq++ include files broken?
Next
From: Peter Eisentraut
Date:
Subject: Re: 7.2b5 libpq++ include files broken?