From 03565d5406e450721732271ad1cfbfe00d03f45b Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 26 Jun 2018 13:06:17 +0200 Subject: [PATCH] Bug 1471177 - Use mingw-specific IFStream and OFStream implementation only when building againstd libstdc++. r=froydnj MozReview-Commit-ID: 6aKGtK7B74z --HG-- extra : rebase_source : 708e16c62c91aa482bffd6dbc74f6bfe944d4fec --- mfbt/FStream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mfbt/FStream.h b/mfbt/FStream.h index d21644ee0e85..8906ab3bdef5 100644 --- a/mfbt/FStream.h +++ b/mfbt/FStream.h @@ -18,7 +18,7 @@ #include #include #include -#if defined(__MINGW32__) +#if defined(__MINGW32__) && defined(__GLIBCXX__) #include "mozilla/UniquePtr.h" #include #include @@ -26,7 +26,7 @@ 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