aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-14 13:46:37 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-14 13:46:37 -0400
commit21e32619146db4602bc35acd0f237a91b43fd754 (patch)
treeb3ac39093694a92adbaa57009391932967c1ae01 /src/common/compat.h
parent9ffccb3f49e1c73b34c0bd41fd3bc7116afab4b7 (diff)
downloadtor-21e32619146db4602bc35acd0f237a91b43fd754.tar
tor-21e32619146db4602bc35acd0f237a91b43fd754.tar.gz
Bump _WIN32_WINNT to 0x0501 throughout the code
This tells the windows headers to give us definitions that didn't exist before XP -- like the ones that we need for IPv6 support. See bug #5861. We didn't run into this issue with mingw, since mingw doesn't respect _WIN32_WINNT as well as it should for some of its definitions.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index f17aa0524..b0ef63bad 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -10,7 +10,7 @@
#include "torint.h"
#ifdef _WIN32
#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
#endif
#define WIN32_LEAN_AND_MEAN
#if defined(_MSC_VER) && (_MSC_VER < 1300)