File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -249,20 +249,9 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
249249
250250bool RenameOver (fs::path src, fs::path dest)
251251{
252- #ifdef __MINGW64__
253- // This is a workaround for a bug in libstdc++ which
254- // implements fs::rename with _wrename function.
255- // This bug has been fixed in upstream:
256- // - GCC 10.3: 8dd1c1085587c9f8a21bb5e588dfe1e8cdbba79e
257- // - GCC 11.1: 1dfd95f0a0ca1d9e6cbc00e6cbfd1fa20a98f312
258- // For more details see the commits mentioned above.
259- return MoveFileExW (src.wstring ().c_str (), dest.wstring ().c_str (),
260- MOVEFILE_REPLACE_EXISTING) != 0 ;
261- #else
262252 std::error_code error;
263253 fs::rename (src, dest, error);
264254 return !error;
265- #endif
266255}
267256
268257/* *
You can’t perform that action at this time.
0 commit comments