Re: Problem with ControlFileData structure being ABI depe ndent

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Problem with ControlFileData structure being ABI depe ndent
Дата
Msg-id 20071211143513.GL31937@svr2.hagander.net
обсуждение исходный текст
Ответ на Re: Problem with ControlFileData structure being ABI depe ndent  (Dave Page <dpage@postgresql.org>)
Список pgsql-hackers
On Mon, Dec 10, 2007 at 09:56:39AM +0000, Dave Page wrote:
> Dave Page wrote:
> > Tom Lane wrote:
> >> Dave Page <dpage@postgresql.org> writes:
> >>> Gregory Stark wrote:
> >>>> An alternative is leaving it in the project file but putting
> >>>> something like
> >>>> this in c.h:
> >>
> >> Put it in win32.h, please.  c.h shouldn't get cluttered with
> >> platform-specific kluges when there's no need for it.
> >>
> >> Is there a good reason not to just #define _USE_32BIT_TIME_T in win32.h?
> >
> > Yeah, the fact that addons may then end up partially compiled with and
> > partially without it being defined. It we just have it error as Greg
> > suggested, then it will force the authors to define it themselves, and
> > if they get that wrong it's their fault not ours.
>
> Patch attached.

Applide with two tiny modifications - the missing quote taht you mentioned,
and changed the #ifdef to only affect MSVC and not mingw.

//Magnus

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: VACUUM ANALYZE out of memory
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Document how to turn off disk write cache on popular operating