diff options
author | Ryan Harrison <rharrison@google.com> | 2020-06-10 15:32:08 (GMT) |
---|---|---|
committer | Ryan Harrison <rharrison@google.com> | 2020-06-10 15:32:08 (GMT) |
commit | 1eda5d825a30eaf5cd50aa4230ea8e9fec613e17 (patch) | |
tree | 8c930a205b45941d83d5ac011a03baaca42fd771 /googletest | |
parent | 4fe018038f87675c083d0cfb6a6b57c274fb1753 (diff) | |
download | googletest-1eda5d825a30eaf5cd50aa4230ea8e9fec613e17.zip googletest-1eda5d825a30eaf5cd50aa4230ea8e9fec613e17.tar.gz googletest-1eda5d825a30eaf5cd50aa4230ea8e9fec613e17.tar.bz2 |
Fix build issue for MinGWrefs/pull/2891/head
Fixes #2885
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 6f9c14a..bd786eb 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -2055,7 +2055,7 @@ GTEST_DISABLE_MSC_DEPRECATED_PUSH_() inline int ChDir(const char* dir) { return chdir(dir); } #endif inline FILE* FOpen(const char* path, const char* mode) { -#if GTEST_OS_WINDOWS +#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MINGW struct wchar_codecvt : public std::codecvt<wchar_t, char, std::mbstate_t> {}; std::wstring_convert<wchar_codecvt> converter; std::wstring wide_path = converter.from_bytes(path); |