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)
249
249
250
250
bool RenameOver (fs::path src, fs::path dest)
251
251
{
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
262
252
std::error_code error;
263
253
fs::rename (src, dest, error);
264
254
return !error;
265
- #endif
266
255
}
267
256
268
257
/* *
You can’t perform that action at this time.
0 commit comments