| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) | 6 #if defined(TARGET_OS_WINDOWS) |
| 7 | 7 |
| 8 #include "bin/directory.h" | 8 #include "bin/directory.h" |
| 9 #include "bin/file.h" | 9 #include "bin/file.h" |
| 10 #include "bin/utils.h" |
| 10 | 11 |
| 11 #include <errno.h> // NOLINT | 12 #include <errno.h> // NOLINT |
| 12 #include <sys/stat.h> // NOLINT | 13 #include <sys/stat.h> // NOLINT |
| 13 | 14 |
| 14 #include "bin/log.h" | 15 #include "bin/log.h" |
| 15 | 16 |
| 16 #undef DeleteFile | 17 #undef DeleteFile |
| 17 | 18 |
| 18 namespace dart { | 19 namespace dart { |
| 19 namespace bin { | 20 namespace bin { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 MoveFileExW(system_path, system_new_path, flags); | 535 MoveFileExW(system_path, system_new_path, flags); |
| 535 free(const_cast<wchar_t*>(system_path)); | 536 free(const_cast<wchar_t*>(system_path)); |
| 536 free(const_cast<wchar_t*>(system_new_path)); | 537 free(const_cast<wchar_t*>(system_new_path)); |
| 537 return (move_status != 0); | 538 return (move_status != 0); |
| 538 } | 539 } |
| 539 | 540 |
| 540 } // namespace bin | 541 } // namespace bin |
| 541 } // namespace dart | 542 } // namespace dart |
| 542 | 543 |
| 543 #endif // defined(TARGET_OS_WINDOWS) | 544 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |