From ffce8d0ac32b8ae6af8e5ea3a283b51e0a29b13e Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Mon, 20 Feb 2006 16:12:33 +0000 Subject: VS 2005 support --- cppe/include/IceE/DisableWarnings.h | 28 ++++++++++++++++++++++++++++ cppe/src/IceE/BasicStream.cpp | 1 + cppe/src/IceE/Connection.cpp | 1 + cppe/src/IceE/Instance.cpp | 1 + cppe/src/IceE/Properties.cpp | 1 + cppe/src/IceE/SafeStdio.cpp | 1 + cppe/src/IceE/Time.cpp | 1 + cppe/test/Common/TestCommon.cpp | 1 + cppe/test/IceE/thread/CreateTest.cpp | 1 + 9 files changed, 36 insertions(+) create mode 100644 cppe/include/IceE/DisableWarnings.h (limited to 'cppe') diff --git a/cppe/include/IceE/DisableWarnings.h b/cppe/include/IceE/DisableWarnings.h new file mode 100644 index 00000000000..956bc212695 --- /dev/null +++ b/cppe/include/IceE/DisableWarnings.h @@ -0,0 +1,28 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved. +// +// This copy of Ice-E is licensed to you under the terms described in the +// ICEE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef ICEE_DISABLEWARNINGS_H +#define ICEE_DISABLEWARNINGS_H + +// +// This header file disables various annoying compiler warnings that +// we don't want. +// +// IMPORTANT: Do *not* include this header file in another public header file! +// Doing this may potentially disable the warnings in the source +// code of our customers, which would be bad. Only include this +// header file in Ice *source* files! +// + +#if defined(_MSC_VER) && _MSC_VER >= 1400 +# define _CRT_SECURE_NO_DEPRECATE 1 // C4996 '' was declared deprecated/ +# pragma warning( 4 : 4996 ) // C4996 'std::' was declared deprecated +#endif + +#endif diff --git a/cppe/src/IceE/BasicStream.cpp b/cppe/src/IceE/BasicStream.cpp index 229136f8b72..bd7dd86c998 100644 --- a/cppe/src/IceE/BasicStream.cpp +++ b/cppe/src/IceE/BasicStream.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include #include diff --git a/cppe/src/IceE/Connection.cpp b/cppe/src/IceE/Connection.cpp index 3bc849851d0..ef392c29c7a 100755 --- a/cppe/src/IceE/Connection.cpp +++ b/cppe/src/IceE/Connection.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include #include diff --git a/cppe/src/IceE/Instance.cpp b/cppe/src/IceE/Instance.cpp index c30b41df662..25148880639 100644 --- a/cppe/src/IceE/Instance.cpp +++ b/cppe/src/IceE/Instance.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include #include diff --git a/cppe/src/IceE/Properties.cpp b/cppe/src/IceE/Properties.cpp index dd355d3b3a2..24866009130 100644 --- a/cppe/src/IceE/Properties.cpp +++ b/cppe/src/IceE/Properties.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include #include diff --git a/cppe/src/IceE/SafeStdio.cpp b/cppe/src/IceE/SafeStdio.cpp index 374852d47a4..bb46f99ae53 100755 --- a/cppe/src/IceE/SafeStdio.cpp +++ b/cppe/src/IceE/SafeStdio.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include #include diff --git a/cppe/src/IceE/Time.cpp b/cppe/src/IceE/Time.cpp index a42ac3fa963..eec75dc93e3 100644 --- a/cppe/src/IceE/Time.cpp +++ b/cppe/src/IceE/Time.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #ifndef _WIN32_WCE diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp index 24ca71a5d5e..3d8f03a0dfb 100755 --- a/cppe/test/Common/TestCommon.cpp +++ b/cppe/test/Common/TestCommon.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include diff --git a/cppe/test/IceE/thread/CreateTest.cpp b/cppe/test/IceE/thread/CreateTest.cpp index 4e973a9d68d..d12dc62cb30 100644 --- a/cppe/test/IceE/thread/CreateTest.cpp +++ b/cppe/test/IceE/thread/CreateTest.cpp @@ -7,6 +7,7 @@ // // ********************************************************************** +#include #include #include -- cgit v1.2.3