Search Postgresql Archives

Re: WIN32 Build?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-
> owner@xxxxxxxxxxxxxx] On Behalf Of Bruce Momjian
> Sent: Wednesday, August 09, 2006 2:19 PM
> To: Shoaib Mir
> Cc: DEV; pgsql-general@xxxxxxxxxxxxxx
> 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).


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux