| 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/platform.h" | 8 #include "bin/platform.h" |
| 9 | 9 |
| 10 #include <crtdbg.h> | 10 #include <crtdbg.h> |
| 11 | 11 |
| 12 #include "bin/file.h" | 12 #include "bin/file.h" |
| 13 #include "bin/lockers.h" | 13 #include "bin/lockers.h" |
| 14 #include "bin/log.h" | 14 #include "bin/log.h" |
| 15 #if !defined(DART_IO_DISABLED) && !defined(PLATFORM_DISABLE_SOCKET) | 15 #if !defined(DART_IO_DISABLED) && !defined(PLATFORM_DISABLE_SOCKET) |
| 16 #include "bin/socket.h" | 16 #include "bin/socket.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Restore the console's output code page | 287 // Restore the console's output code page |
| 288 PlatformWin::RestoreConsole(); | 288 PlatformWin::RestoreConsole(); |
| 289 // On Windows we use ExitProcess so that threads can't clobber the exit_code. | 289 // On Windows we use ExitProcess so that threads can't clobber the exit_code. |
| 290 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 | 290 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 |
| 291 ::ExitProcess(exit_code); | 291 ::ExitProcess(exit_code); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace bin | 294 } // namespace bin |
| 295 } // namespace dart | 295 } // namespace dart |
| 296 | 296 |
| 297 #endif // defined(TARGET_OS_WINDOWS) | 297 #endif // defined(HOST_OS_WINDOWS) |
| OLD | NEW |