Re: WIN32 Build? - Mailing list pgsql-general

From Dann Corbit
Subject Re: WIN32 Build?
Date
Msg-id D425483C2C5C9F49B5B7A41F8944154757DB2A@postal.corporate.connx.com
Whole thread Raw
In response to WIN32 Build?  ("DEV" <dev@umpa-us.com>)
List pgsql-general
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-
> owner@postgresql.org] On Behalf Of Bruce Momjian
> Sent: Wednesday, August 09, 2006 2:19 PM
> To: Shoaib Mir
> Cc: DEV; pgsql-general@postgresql.org
> Subject: Re: [GENERAL] WIN32 Build?
>
> Shoaib Mir wrote:
> > Dev,
> >
> > You are doing it a little wrong for Debug version, in order to build
the
> > Debug version use the following:
> >
> > nmake /f win32.mak DEBUG=1
> >
> > Bruce,
> >
> > If you remove "inline" the build process goes fine and if you dont,
it
> first
> > gives a few warning and in the end quits the build process with a
fatal
> > error.
>
> OK, good to know.  If we ever find a symbol that is defined for that
> compiler that we can test, we can fix this.

#ifdef _MSC_VER
#define inline __inline
#endif

An alternative would be to do this:

#ifdef _MSC_VER
#define inline
#endif

And let the compiler inline with /Ob2 (which generally makes better
decisions than the programmer anyway).

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Not so much load balancing as load limits
Next
From: Jim Nasby
Date:
Subject: Re: PITR timeline question