Re: Visual Studio 2005, C-language function - avoiding hacks?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Kevin Flanagan <kevin-f(at)linkprior(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Visual Studio 2005, C-language function - avoiding hacks?
Date: 2010-03-05 10:04:47
Message-ID: 4B90D73F.7070706@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Flanagan wrote:
> Ok, re "building with the win32 configuration" ... that sounds like just the thing I should know about. All I've done is downloaded and installed the 1-click installer for Windows from http://www.enterprisedb.com/products/pgdownload.do#windows ... so while I'm sure it knows it's running on Win32, is there some other configuration change I should make for dev purposes to indicate that it's "the win32 configuration"? Or does "building with the win32 configuration" refer to those who are building the server from source, or something?

I wasn't too specific because it's been a while since I did any coding
against Pg on win32, and I couldn't remember exactly how it selected the
right code to use for a given platform - whether it was a macro that
must be defined, or what.

Having had a look at the sources: It's done by header search path. You
need to make sure that include/port/win32_msvc is on the header search
path as well as the main include/ directory.

I *think* port/win32 is for the MinGW win32 port and thus shouldn't be
included in the search path for msvc builds, but I'm not 100% sure of
that and a quick look doesn't reveal any documentation on the matter.

--
Craig Ringer

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2010-03-05 10:19:52 Re: Visual Studio 2005, C-language function - avoiding hacks?
Previous Message Kevin Flanagan 2010-03-05 09:55:26 Re: Visual Studio 2005, C-language function - avoiding hacks?