Re: 7.2b5 libpq++ include files broken?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.2b5 libpq++ include files broken?
Дата
Msg-id 15186.1011714619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 7.2b5 libpq++ include files broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Create a rule for updating on a view  ("Dong Meng" <eddy@securities.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.2b5 libpq++ include files broken?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: 7.2b5 libpq++ include files broken?