Bug 1441112 - Stop including <iostream> in FStream.h. r?froydnj draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Wed, 28 Feb 2018 21:45:04 +0900
changeset 760976 def0c9f50418b411f4b40aa8e4deb62242e175dc
parent 760975 ac8bfe1f1cb4d8ea19759dab222959da984ea6de
push id100800
push userVYV03354@nifty.ne.jp
push dateWed, 28 Feb 2018 13:37:39 +0000
reviewersfroydnj
bugs1441112
milestone60.0a1
Bug 1441112 - Stop including <iostream> in FStream.h. r?froydnj MozReview-Commit-ID: 8SBsucRbL3i
mfbt/FStream.h
--- a/mfbt/FStream.h
+++ b/mfbt/FStream.h
@@ -10,17 +10,18 @@
 // uses proprietary wchar_t* overloads on MSVC, and __gnu_cxx::stdio_filebuf
 // extension on MinGW. Once we can use C++17 filesystem API everywhere,
 // we will be able to avoid this wrapper.
 
 #ifndef mozilla_FStream_h
 #define mozilla_FStream_h
 
 #include "mozilla/Char16.h"
-#include <iostream>
+#include <istream>
+#include <ostream>
 #include <fstream>
 #if defined(__MINGW32__)
 #include "mozilla/UniquePtr.h"
 #include <fcntl.h>
 #include <ext/stdio_filebuf.h>
 #endif
 
 namespace mozilla {