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(HOST_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 #include "bin/utils.h" |
11 #include "bin/utils_win.h" | 11 #include "bin/utils_win.h" |
12 | 12 |
13 #include <errno.h> // NOLINT | 13 #include <errno.h> // NOLINT |
14 #include <sys/stat.h> // NOLINT | 14 #include <sys/stat.h> // NOLINT |
15 | 15 |
16 #include "bin/dartutils.h" | 16 #include "bin/dartutils.h" |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 } | 503 } |
504 DWORD flags = MOVEFILE_WRITE_THROUGH; | 504 DWORD flags = MOVEFILE_WRITE_THROUGH; |
505 int move_status = | 505 int move_status = |
506 MoveFileExW(system_path.wide(), system_new_path.wide(), flags); | 506 MoveFileExW(system_path.wide(), system_new_path.wide(), flags); |
507 return (move_status != 0); | 507 return (move_status != 0); |
508 } | 508 } |
509 | 509 |
510 } // namespace bin | 510 } // namespace bin |
511 } // namespace dart | 511 } // namespace dart |
512 | 512 |
513 #endif // defined(TARGET_OS_WINDOWS) | 513 #endif // defined(HOST_OS_WINDOWS) |
OLD | NEW |