Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1471177 - Use mingw-specific IFStream and OFStream implementation…
Browse files Browse the repository at this point in the history
… only when building againstd libstdc++. r=froydnj

MozReview-Commit-ID: 6aKGtK7B74z
  • Loading branch information
cjacek committed Jun 26, 2018
1 parent ab8a5a0 commit 6b43724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mfbt/FStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#include <istream>
#include <ostream>
#include <fstream>
#if defined(__MINGW32__)
#if defined(__MINGW32__) && defined(__GLIBCXX__)
#include "mozilla/UniquePtr.h"
#include <fcntl.h>
#include <ext/stdio_filebuf.h>
#endif

namespace mozilla {

#if defined(__MINGW32__)
#if defined(__MINGW32__) && defined(__GLIBCXX__)
// MinGW does not support wchar_t* overloads that are MSVC extension until
// C++17, so we have to implement widechar wrappers using a GNU extension.
class IFStream : public std::istream
Expand Down

0 comments on commit 6b43724

Please sign in to comment.