summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/kwsys_ios_sstream.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-12-01 12:28:13 (GMT)
committerBrad King <brad.king@kitware.com>2004-12-01 12:28:13 (GMT)
commit920df088ab936be02d4ad2882a9ca94b3344b491 (patch)
tree0dd763a9119a5445f209d7ae4c3becf3c356c2ae /Source/kwsys/kwsys_ios_sstream.h.in
parentca2f4aa03979a0814201239962df910890b7ca37 (diff)
downloadCMake-920df088ab936be02d4ad2882a9ca94b3344b491.zip
CMake-920df088ab936be02d4ad2882a9ca94b3344b491.tar.gz
CMake-920df088ab936be02d4ad2882a9ca94b3344b491.tar.bz2
COMP: Need to choose between <new> and <new.h> based on whether standard headers are available.
Diffstat (limited to 'Source/kwsys/kwsys_ios_sstream.h.in')
-rw-r--r--Source/kwsys/kwsys_ios_sstream.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/kwsys/kwsys_ios_sstream.h.in b/Source/kwsys/kwsys_ios_sstream.h.in
index 727a789..aa407d5 100644
--- a/Source/kwsys/kwsys_ios_sstream.h.in
+++ b/Source/kwsys/kwsys_ios_sstream.h.in
@@ -34,6 +34,7 @@
# ifdef _MSC_VER
# pragma warning (push, 1)
# pragma warning (disable: 4702)
+# pragma warning (disable: 4995) /* Old streams are deprecated. */
# endif
# if @KWSYS_NAMESPACE@_IOS_USE_ANSI
# include <strstream>
@@ -42,6 +43,11 @@
# elif @KWSYS_NAMESPACE@_IOS_USE_STRSTREA_H
# include <strstrea.h>
# endif
+# if @KWSYS_NAMESPACE@_IOS_USE_ANSI
+# include <new> // Need placement operator new.
+# else
+# include <new.h> // Need placement operator new.
+# endif
# ifdef _MSC_VER
# pragma warning(pop)
# endif
@@ -50,7 +56,6 @@
// ostringstream and istringstream classes.
# include <@KWSYS_NAMESPACE@/stl/string>
-# include <new> // Need placement operator new.
namespace @KWSYS_NAMESPACE@_ios
{