Browse Source

COMP: Disabling old streams warnings when including old headers on MSVC.

Brad King 21 years ago
parent
commit
ca2f4aa039
2 changed files with 8 additions and 6 deletions
  1. 4 3
      Source/kwsys/kwsys_ios_fstream.h.in
  2. 4 3
      Source/kwsys/kwsys_ios_iostream.h.in

+ 4 - 3
Source/kwsys/kwsys_ios_fstream.h.in

@@ -17,8 +17,9 @@
 #include <@KWSYS_NAMESPACE@/Configure.hxx>
 
 #ifdef _MSC_VER
-#pragma warning (push, 1)
-#pragma warning (disable: 4702)
+# pragma warning (push, 1)
+# pragma warning (disable: 4702)
+# pragma warning (disable: 4995) /* Old streams are deprecated.  */
 #endif
 
 #if @KWSYS_NAMESPACE@_IOS_USE_ANSI
@@ -41,7 +42,7 @@ namespace @KWSYS_NAMESPACE@_ios
 #endif
 
 #ifdef _MSC_VER
-#pragma warning(pop)
+# pragma warning(pop)
 #endif
 
 #endif

+ 4 - 3
Source/kwsys/kwsys_ios_iostream.h.in

@@ -17,8 +17,9 @@
 #include <@KWSYS_NAMESPACE@/Configure.hxx>
 
 #ifdef _MSC_VER
-#pragma warning (push, 1)
-#pragma warning (disable: 4702)
+# pragma warning (push, 1)
+# pragma warning (disable: 4702)
+# pragma warning (disable: 4995) /* Old streams are deprecated.  */
 #endif
 
 #if @KWSYS_NAMESPACE@_IOS_USE_ANSI
@@ -42,7 +43,7 @@ namespace @KWSYS_NAMESPACE@_ios
 #endif
 
 #ifdef _MSC_VER
-#pragma warning(pop)
+# pragma warning(pop)
 #endif
 
 #endif