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

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

Issue 1843793004: Try to fix Windows Dartium build again (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 "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 #if !defined(DART_IO_DISABLED) && !defined(PLATFORM_DISABLE_SOCKET)
13 #include "bin/socket.h" 13 #include "bin/socket.h"
14 #endif 14 #endif
15 #include "bin/utils.h" 15 #include "bin/utils.h"
16 #include "bin/utils_win.h" 16 #include "bin/utils_win.h"
17 17
18 namespace dart { 18 namespace dart {
19 19
20 // Defined in vm/os_thread_win.cc 20 // Defined in vm/os_thread_win.cc
21 extern bool private_flag_windows_run_tls_destructors; 21 extern bool private_flag_windows_run_tls_destructors;
22 22
(...skipping 21 matching lines...) Expand all
44 return "windows"; 44 return "windows";
45 } 45 }
46 46
47 47
48 const char* Platform::LibraryExtension() { 48 const char* Platform::LibraryExtension() {
49 return "dll"; 49 return "dll";
50 } 50 }
51 51
52 52
53 bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) { 53 bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) {
54 #if defined(PLATFORM_DISABLE_SOCKET) 54 #if defined(DART_IO_DISABLED) || defined(PLATFORM_DISABLE_SOCKET)
55 return false; 55 return false;
56 #else 56 #else
57 if (!Socket::Initialize()) { 57 if (!Socket::Initialize()) {
58 return false; 58 return false;
59 } 59 }
60 return gethostname(buffer, buffer_length) == 0; 60 return gethostname(buffer, buffer_length) == 0;
61 #endif 61 #endif
62 } 62 }
63 63
64 64
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ::dart::private_flag_windows_run_tls_destructors = false; 121 ::dart::private_flag_windows_run_tls_destructors = false;
122 // 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.
123 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 123 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870
124 ::ExitProcess(exit_code); 124 ::ExitProcess(exit_code);
125 } 125 }
126 126
127 } // namespace bin 127 } // namespace bin
128 } // namespace dart 128 } // namespace dart
129 129
130 #endif // defined(TARGET_OS_WINDOWS) 130 #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