From e4163a6a7eda37de850e6b75158bc4e2c60c2e01 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sat, 25 Aug 2018 23:35:37 +0800 Subject: [PATCH] Add win32 winnt defines description --- gsock.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gsock.cpp b/gsock.cpp index 1554720..4b5da89 100644 --- a/gsock.cpp +++ b/gsock.cpp @@ -7,8 +7,6 @@ #include "gsock.h" -#define GSOCK_DEBUG - #ifdef GSOCK_DEBUG #pragma message("GSock Debug mode compiled in") #include @@ -20,8 +18,17 @@ #endif #ifdef _WIN32 -/// Using Win8.1 -#define _WIN32_WINNT 0x0603 +/* _WIN32_WINNT defines +Windows XP = 0x0501 +Windows Server 2003 = 0x0502 +Windows Vista, Windows Server 2008 = 0x0600 +Windows 7 = 0x0601 +Windows 8 = 0x0602 +Windows 8.1 = 0x0603 +Windows 10 = 0x0A00 +*/ +// Using Win10 by default +#define _WIN32_WINNT 0x0A00 #include #include #ifdef _MSC_VER