From 73d0471d281ef2408035692025f28b1f6c96c04c Mon Sep 17 00:00:00 2001 From: Skoader Date: Sun, 22 Apr 2012 15:17:39 +1000 Subject: [PATCH] Update7 for MSVC10 When compiling with MSVC10, client support must be limited to XP. --- .../Plasma20/Sources/Plasma/CoreLib/hsWindows.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsWindows.h b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsWindows.h index ec856580..d8c34c6a 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsWindows.h +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/CoreLib/hsWindows.h @@ -44,7 +44,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #if HS_BUILD_FOR_WIN32 #ifndef __AFX_H__ // MFC apps won't let us include windows from here. =( -#define _WIN32_WINNT 0x0400 + +#if defined(_MSC_VER) && _MSC_VER >= 1600 + #define _WIN32_WINNT 0x0501 +#else + #define _WIN32_WINNT 0x0400 +#endif + #include #include #endif // __AFX_H__