Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: runtime/bin/platform_win.cc

Issue 2738913002: Fix Windows dartium build (Closed)
Patch Set: Fix Windows dartium build Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <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"
17 #endif 17 #endif
18 #include "bin/thread.h" 18 #include "bin/thread.h"
19 #include "bin/utils.h" 19 #include "bin/utils.h"
20 #include "bin/utils_win.h" 20 #include "bin/utils_win.h"
21 21
22 // This is not always defined in the header files. See: 22 // These are not always defined in the header files. See:
23 // https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).as px 23 // https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).as px
24 #ifndef ENABLE_VIRTUAL_TERMINAL_INPUT 24 #ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
25 #define ENABLE_VIRTUAL_TERMINAL_INPUT 0x200 25 #define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
26 #endif
27
28 #ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
29 #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
26 #endif 30 #endif
27 31
28 namespace dart { 32 namespace dart {
29 33
30 // Defined in vm/os_thread_win.cc 34 // Defined in vm/os_thread_win.cc
31 extern bool private_flag_windows_run_tls_destructors; 35 extern bool private_flag_windows_run_tls_destructors;
32 36
33 namespace bin { 37 namespace bin {
34 38
35 const char* Platform::executable_name_ = NULL; 39 const char* Platform::executable_name_ = NULL;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 PlatformWin::RestoreConsole(); 226 PlatformWin::RestoreConsole();
223 // On Windows we use ExitProcess so that threads can't clobber the exit_code. 227 // On Windows we use ExitProcess so that threads can't clobber the exit_code.
224 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 228 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870
225 ::ExitProcess(exit_code); 229 ::ExitProcess(exit_code);
226 } 230 }
227 231
228 } // namespace bin 232 } // namespace bin
229 } // namespace dart 233 } // namespace dart
230 234
231 #endif // defined(TARGET_OS_WINDOWS) 235 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698