Re: Problem with ControlFileData structure being ABI depe ndent - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Problem with ControlFileData structure being ABI depe ndent
Date
Msg-id 20071211143513.GL31937@svr2.hagander.net
Whole thread Raw
In response to Re: Problem with ControlFileData structure being ABI depe ndent  (Dave Page <dpage@postgresql.org>)
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: VACUUM ANALYZE out of memory
Next
From: Magnus Hagander
Date:
Subject: Re: Document how to turn off disk write cache on popular operating