0028824: Possibility to build OCCT 7.1.0 and above using Visual Studio 2008
[occt.git] / src / Standard / Standard_ArrayStreamBuffer.hxx
index 6e5973b..e472446 100644 (file)
 
 #include <fstream>
 
+// Suppress VC9 warning on xsputn() function
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable: 4996)
+#endif
+
 //! Custom buffer object implementing STL interface std::streambuf for streamed reading from allocated memory block.
 //! Implements minimal sub-set of methods for passing buffer to std::istream, including seek support.
 //!
@@ -110,4 +116,8 @@ protected:
 
 };
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
 #endif // _Standard_ArrayStreamBuffer_HeaderFile