summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/PlatformInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/PlatformInfo.cpp')
-rw-r--r--cpp/src/IceGrid/PlatformInfo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp
index d844a7f4a75..aa162923544 100644
--- a/cpp/src/IceGrid/PlatformInfo.cpp
+++ b/cpp/src/IceGrid/PlatformInfo.cpp
@@ -248,7 +248,17 @@ PlatformInfo::PlatformInfo(const string& prefix,
}
OSVERSIONINFO osInfo;
osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+
+//
+// GetVerionEx deprecated in Windows 8.1
+//
+# if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (disable : 4996)
+# endif
GetVersionEx(&osInfo);
+# if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (default : 4996)
+# endif
ostringstream os;
os << osInfo.dwMajorVersion << "." << osInfo.dwMinorVersion;
_release = os.str();