summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/binding/AllTests.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-11-26 21:55:01 +0100
committerJose <jose@zeroc.com>2013-11-26 21:55:01 +0100
commitd10a2cb6de091828703cef138e65faa4787c42e5 (patch)
tree55d309990da561cd4362fa2b0b9f8b774db5bd38 /cpp/test/Ice/binding/AllTests.cpp
parentFixed OpenSSL deprecation warning on OS X (diff)
downloadice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.bz2
ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.xz
ice-d10a2cb6de091828703cef138e65faa4787c42e5.zip
Visual Studio 2013 support
Diffstat (limited to 'cpp/test/Ice/binding/AllTests.cpp')
-rw-r--r--cpp/test/Ice/binding/AllTests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/Ice/binding/AllTests.cpp b/cpp/test/Ice/binding/AllTests.cpp
index 75427f4a915..405a2db4127 100644
--- a/cpp/test/Ice/binding/AllTests.cpp
+++ b/cpp/test/Ice/binding/AllTests.cpp
@@ -849,7 +849,13 @@ allTests(const Ice::CommunicatorPtr& communicator)
#if defined(_WIN32) && !defined(ICE_OS_WINRT)
OSVERSIONINFO ver;
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+# if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (disable : 4996)
+# endif
GetVersionEx(&ver);
+# if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (default : 4996)
+# endif
const bool dualStack = ver.dwMajorVersion >= 6; // Windows XP IPv6 doesn't support dual-stack
#else
const bool dualStack = true;