diff --git a/src/ostreams.h b/src/ostreams.h
index e72c8ee..9f25bca 100644
--- a/src/ostreams.h
+++ b/src/ostreams.h
@@ -34,7 +34,7 @@ class OFStreamBase : public std::streambuf {
 
 
 // An output stream writing to a file.
-class V8_EXPORT_PRIVATE OFStream : public std::ostream {
+class V8_EXPORT_PRIVATE OFStream : public NON_EXPORTED_BASE(std::ostream) {
  public:
   explicit OFStream(FILE* f);
   virtual ~OFStream();

Fix the C4275 warning when building v8
Fix the C4275 warning when building v8
