Re: pg_config.h.win32 - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: pg_config.h.win32
Date
Msg-id 3BFDCD48.E9787C2C@tpf.co.jp
Whole thread Raw
In response to pg_config.h.win32  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Responses Re: pg_config.h.win32
List pgsql-hackers
Tom Lane wrote:
> 
> Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> > pg_config.h generated under cygwin doesn't fit
> > in with native-windows. Of cource pg_config.h.win32
> > doesn't fit in with cygwin either.
> 
> Should it?  I'm quite content to regard them as separate platforms.
> I don't expect LinuxPPC and Mac OSX to share a pg_config.h, even
> though I run them on the same box.

Yes but the current native-windows stuff doesn't seem
valuable to keep a separate source tree.

> 
> I'm also not seeing why #including one file in the other would make
> that problem better?

??? I'm changing my pg_config.h locally in reality
like as follows.

#ifdef WIN32
#include "pg_config.h.win32"
#else
.
. (the original content of pg_config.h)
.
#endif /* WIN32 */

There's no problem to compile under both cygwin
and native-windows. It's much safer than replacing
pg_config.h.win32 and the original pg_config.h each
time.

regards,
Hiroshi Inoue


pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Unescaped new lines in postgres
Next
From: Lamar Owen
Date:
Subject: Re: v7.2b3 packaged, but not announced beyond here yet ...