diff options
Diffstat (limited to '')
-rw-r--r-- | CPP/Windows/NtCheck.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/CPP/Windows/NtCheck.h b/CPP/Windows/NtCheck.h index 0af3291..362a05a 100644 --- a/CPP/Windows/NtCheck.h +++ b/CPP/Windows/NtCheck.h | |||
@@ -1,19 +1,29 @@ | |||
1 | // Windows/NtCheck.h | 1 | // Windows/NtCheck.h |
2 | 2 | ||
3 | #ifndef __WINDOWS_NT_CHECK_H | 3 | #ifndef ZIP7_INC_WINDOWS_NT_CHECK_H |
4 | #define __WINDOWS_NT_CHECK_H | 4 | #define ZIP7_INC_WINDOWS_NT_CHECK_H |
5 | 5 | ||
6 | #ifdef _WIN32 | 6 | #ifdef _WIN32 |
7 | 7 | ||
8 | #include "../Common/MyWindows.h" | 8 | #include "../Common/MyWindows.h" |
9 | 9 | ||
10 | #if !defined(_WIN64) && !defined(UNDER_CE) | 10 | #if !defined(_WIN64) && !defined(UNDER_CE) |
11 | |||
12 | #if defined(_MSC_VER) && _MSC_VER >= 1900 | ||
13 | #pragma warning(push) | ||
14 | // GetVersionExW was declared deprecated | ||
15 | #pragma warning(disable : 4996) | ||
16 | #endif | ||
11 | static inline bool IsItWindowsNT() | 17 | static inline bool IsItWindowsNT() |
12 | { | 18 | { |
13 | OSVERSIONINFO vi; | 19 | OSVERSIONINFO vi; |
14 | vi.dwOSVersionInfoSize = sizeof(vi); | 20 | vi.dwOSVersionInfoSize = sizeof(vi); |
15 | return (::GetVersionEx(&vi) && vi.dwPlatformId == VER_PLATFORM_WIN32_NT); | 21 | return (::GetVersionEx(&vi) && vi.dwPlatformId == VER_PLATFORM_WIN32_NT); |
16 | } | 22 | } |
23 | #if defined(_MSC_VER) && _MSC_VER >= 1900 | ||
24 | #pragma warning(pop) | ||
25 | #endif | ||
26 | |||
17 | #endif | 27 | #endif |
18 | 28 | ||
19 | #ifndef _UNICODE | 29 | #ifndef _UNICODE |