Re: [HACKERS] [PATCHES] zic with msvc

2006-10-20 Thread Magnus Hagander
> >>> + #ifdef WIN32 > >>> + #define _WIN32_WINNT 0x0400 > >>> + #endif > >> > >> Hmm ... in pg_ctl.c I see > >> > >> #define _WIN32_WINNT 0x0500 > >> > >> Is there a reason for these to be different? Are there > other places > >> that will need this (ie, maybe it should be in c.h instead?) >

Re: [HACKERS] [PATCHES] zic with msvc

2006-10-20 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: >>> + #ifdef WIN32 >>> + #define _WIN32_WINNT 0x0400 >>> + #endif >> >> Hmm ... in pg_ctl.c I see >> >> #define _WIN32_WINNT 0x0500 >> >> Is there a reason for these to be different? Are there other >> places that will need this (ie, maybe it shoul

Re: [PATCHES] zic with msvc

2006-10-20 Thread Magnus Hagander
> > + #ifdef WIN32 > > + #define _WIN32_WINNT 0x0400 > > + #endif > > Hmm ... in pg_ctl.c I see > > #define _WIN32_WINNT 0x0500 > > Is there a reason for these to be different? Are there other > places that will need this (ie, maybe it should be in c.h instead?) Not really. The default appear

Re: [PATCHES] zic with msvc

2006-10-20 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: > + #ifdef WIN32 > + #define _WIN32_WINNT 0x0400 > + #endif Hmm ... in pg_ctl.c I see #define _WIN32_WINNT 0x0500 Is there a reason for these to be different? Are there other places that will need this (ie, maybe it should be in c.h instead?)

[PATCHES] zic with msvc

2006-10-20 Thread Magnus Hagander
Attached patch is required to make zic build on msvc. It enables Windows NT4 and newer functions in the windows API, so we can use CopyFileEx. //Magnus zic_msvc.diff Description: zic_msvc.diff ---(end of broadcast)--- TIP 1: if posting/reading th