_WIN32_WINNT should be 0x0501 in win32.h

From: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: _WIN32_WINNT should be 0x0501 in win32.h
Date: 2009-09-07 02:34:38
Message-ID: 20090907112633.C851.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 disable it sometime in the future.

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Itagaki Takahiro 2009-09-07 02:40:13 Rename StrNCpy to avoid conflictions on win32
Previous Message Itagaki Takahiro 2009-09-07 02:20:06 Re: Triggers on columns