_WIN32_WINNT should be 0x0501 in win32.h - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject _WIN32_WINNT should be 0x0501 in win32.h
Date
Msg-id 20090907112633.C851.52131E4D@oss.ntt.co.jp
Whole thread Raw
Responses Re: _WIN32_WINNT should be 0x0501 in win32.h
List pgsql-hackers
We should define _WIN32_WINNT as 0x0500 in src/include/port/win32.h,
but it should be 0x0501 (Windows XP) because IPPROTO_IPV6 will be
defined only if _WIN32_WINNT >= 0x0501 in the recent Micosoft SDKs.

[ws2def.h]
#if(_WIN32_WINNT >= 0x0501)   IPPROTO_IPV6          = 41, // IPv6 header



Index: src/include/port/win32.h
===================================================================
--- src/include/port/win32.h    (head)
+++ src/include/port/win32.h    (work)
@@ -4,7 +4,7 @@#define WIN32_ONLY_COMPILER#endif
-#define _WIN32_WINNT 0x0500
+#define _WIN32_WINNT 0x0501/* * Always build with SSPI support. Keep it as a #define in case * we want a switch to
disableit sometime in the future.
 



Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: Triggers on columns
Next
From: Itagaki Takahiro
Date:
Subject: Rename StrNCpy to avoid conflictions on win32