Re: pgsql: Fix for globals.c- c.h must come first

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Fix for globals.c- c.h must come first
Дата
Msg-id 20180619180357.k7c6c47dptva2vsp@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Fix for globals.c- c.h must come first  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-committers
On 2018-06-19 13:58:34 -0400, Bruce Momjian wrote:
> On Sat, May 19, 2018 at 01:20:47AM +0000, Stephen Frost wrote:
> > Fix for globals.c- c.h must come first
> > 
> > Commit da9b580 mistakenly put a system header before postgres.h (which
> > includes c.h).  That can cause portability issues and broke (at least)
> > builds with older Windows compilers.
> 
> I assume there is no way to add defined and checks to globals.c and c.h
> to cause a compile error when this happens.

I don't see how to do so in a form that's even halfway portable.

Just to be clear: There's nothing globals.c specific about the rule to
always include postgres.h first.

Greetings,

Andres Freund


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pgsql: Fix for globals.c- c.h must come first
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix for globals.c- c.h must come first