From c037e3f78e3fc6d09b418c18689e4ed0d0397d99 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 21 Jan 2013 20:32:07 +0000 Subject: [PATCH] Add detection of Win8 in wversion, to help stats collection This was SVN commit r13100. --- source/lib/sysdep/os/win/wversion.cpp | 2 ++ source/lib/sysdep/os/win/wversion.h | 1 + 2 files changed, 3 insertions(+) diff --git a/source/lib/sysdep/os/win/wversion.cpp b/source/lib/sysdep/os/win/wversion.cpp index 747680a0af..9602e644be 100644 --- a/source/lib/sysdep/os/win/wversion.cpp +++ b/source/lib/sysdep/os/win/wversion.cpp @@ -48,6 +48,8 @@ const wchar_t* wversion_Family() return L"Vista"; case WVERSION_7: return L"Win7"; + case WVERSION_8: + return L"Win8"; default: return L"Windows"; } diff --git a/source/lib/sysdep/os/win/wversion.h b/source/lib/sysdep/os/win/wversion.h index bb9246ae66..5f798de80d 100644 --- a/source/lib/sysdep/os/win/wversion.h +++ b/source/lib/sysdep/os/win/wversion.h @@ -34,6 +34,7 @@ const size_t WVERSION_XP = 0x0501; const size_t WVERSION_XP64 = 0x0502; const size_t WVERSION_VISTA = 0x0600; const size_t WVERSION_7 = 0x0601; +const size_t WVERSION_8 = 0x0602; /** * @return one of the above WVERSION* values