| 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/platform.h" | 8 #include "bin/platform.h" |
| 9 | 9 |
| 10 #include "bin/file.h" | 10 #include "bin/file.h" |
| 11 #include "bin/log.h" | 11 #include "bin/log.h" |
| 12 if !defined(PLATFORM_DISABLE_SOCKET) |
| 12 #include "bin/socket.h" | 13 #include "bin/socket.h" |
| 14 #endif |
| 13 #include "bin/utils.h" | 15 #include "bin/utils.h" |
| 14 #include "bin/utils_win.h" | 16 #include "bin/utils_win.h" |
| 15 | 17 |
| 16 namespace dart { | 18 namespace dart { |
| 17 | 19 |
| 18 // Defined in vm/os_thread_win.cc | 20 // Defined in vm/os_thread_win.cc |
| 19 extern bool private_flag_windows_run_tls_destructors; | 21 extern bool private_flag_windows_run_tls_destructors; |
| 20 | 22 |
| 21 namespace bin { | 23 namespace bin { |
| 22 | 24 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ::dart::private_flag_windows_run_tls_destructors = false; | 121 ::dart::private_flag_windows_run_tls_destructors = false; |
| 120 // On Windows we use ExitProcess so that threads can't clobber the exit_code. | 122 // On Windows we use ExitProcess so that threads can't clobber the exit_code. |
| 121 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 | 123 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 |
| 122 ::ExitProcess(exit_code); | 124 ::ExitProcess(exit_code); |
| 123 } | 125 } |
| 124 | 126 |
| 125 } // namespace bin | 127 } // namespace bin |
| 126 } // namespace dart | 128 } // namespace dart |
| 127 | 129 |
| 128 #endif // defined(TARGET_OS_WINDOWS) | 130 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |