summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-02-10 16:51:34 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-08-02 16:37:49 +0100
commit1a96bfe35fec4c425d6f5fbb9c539386e39ff3e4 (patch)
treef304796357dce27cc666b3353c9787b785ca1123 /libstdc++-v3
parent79184d8c57d377a242610543a2cbe4f154924be7 (diff)
downloadgcc-1a96bfe35fec4c425d6f5fbb9c539386e39ff3e4.tar.gz
libstdc++: Re-enable workaround for _wstat64 bug [PR 88881]
This wasn't fixed upstream for mingw-w64 so we still need the workaround. libstdc++-v3/ChangeLog: PR libstdc++/88881 * src/c++17/fs_ops.cc (fs::status): Re-enable workaround. (cherry picked from commit 3df5b249b3c81e95cdcb293a388155ae5b168f9e)
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/src/c++17/fs_ops.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc
index f744d2f7b56..7fea05fbf50 100644
--- a/libstdc++-v3/src/c++17/fs_ops.cc
+++ b/libstdc++-v3/src/c++17/fs_ops.cc
@@ -1404,7 +1404,6 @@ fs::status(const fs::path& p, error_code& ec) noexcept
auto str = p.c_str();
#if _GLIBCXX_FILESYSTEM_IS_WINDOWS
-#if ! defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR < 6
// stat() fails if there's a trailing slash (PR 88881)
path p2;
if (p.has_relative_path() && !p.has_filename())
@@ -1422,7 +1421,6 @@ fs::status(const fs::path& p, error_code& ec) noexcept
str = p2.c_str();
}
#endif
-#endif
stat_type st;
if (posix::stat(str, &st))