|
|
|
@ -36,7 +36,7 @@ |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __APPLE__ |
|
|
|
#if defined(__APPLE__) && DARWIN_MAJOR_VERSION >= 9 |
|
|
|
#include <copyfile.h> |
|
|
|
#include <copyfile.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
@ -346,7 +346,7 @@ void CopyFileOverwrite(const char *from, const char *to) |
|
|
|
if (!::CopyFileW(&fromUtf16[0], &toUtf16[0], /*bFailIfExists=*/false)) { |
|
|
|
if (!::CopyFileW(&fromUtf16[0], &toUtf16[0], /*bFailIfExists=*/false)) { |
|
|
|
LogError("Failed to copy {} to {}", from, to); |
|
|
|
LogError("Failed to copy {} to {}", from, to); |
|
|
|
} |
|
|
|
} |
|
|
|
#elif defined(__APPLE__) |
|
|
|
#elif defined(__APPLE__) && DARWIN_MAJOR_VERSION >= 9 |
|
|
|
::copyfile(from, to, nullptr, COPYFILE_ALL); |
|
|
|
::copyfile(from, to, nullptr, COPYFILE_ALL); |
|
|
|
#elif defined(DVL_HAS_FILESYSTEM) |
|
|
|
#elif defined(DVL_HAS_FILESYSTEM) |
|
|
|
std::error_code error; |
|
|
|
std::error_code error; |
|
|
|
|