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

Side by Side Diff: runtime/platform/globals.h

Issue 2791423002: [dart:io] Don't close stdin with a socket finalizer (Closed)
Patch Set: Windows 7 fix Created 3 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
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 #ifndef RUNTIME_PLATFORM_GLOBALS_H_ 5 #ifndef RUNTIME_PLATFORM_GLOBALS_H_
6 #define RUNTIME_PLATFORM_GLOBALS_H_ 6 #define RUNTIME_PLATFORM_GLOBALS_H_
7 7
8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
9 // enable platform independent printf format specifiers. 9 // enable platform independent printf format specifiers.
10 #ifndef __STDC_FORMAT_MACROS 10 #ifndef __STDC_FORMAT_MACROS
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 #if !defined(UNICODE) 44 #if !defined(UNICODE)
45 #define _UNICODE 45 #define _UNICODE
46 #define UNICODE 46 #define UNICODE
47 #endif 47 #endif
48 48
49 #include <windows.h> 49 #include <windows.h>
50 #include <winsock2.h> 50 #include <winsock2.h>
51 #include <Rpc.h> 51 #include <Rpc.h>
52 #include <shellapi.h> 52 #include <shellapi.h>
53 #include <VersionHelpers.h>
53 #endif // defined(_WIN32) 54 #endif // defined(_WIN32)
54 55
55 #if !defined(_WIN32) 56 #if !defined(_WIN32)
56 #include <arpa/inet.h> 57 #include <arpa/inet.h>
57 #include <inttypes.h> 58 #include <inttypes.h>
58 #include <stdint.h> 59 #include <stdint.h>
59 #include <unistd.h> 60 #include <unistd.h>
60 #endif // !defined(_WIN32) 61 #endif // !defined(_WIN32)
61 62
62 #include <float.h> 63 #include <float.h>
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 // tag in the ICData and check it when recreating the flow graph in 710 // tag in the ICData and check it when recreating the flow graph in
710 // optimizing compiler. Enable it for other modes (product, release) if needed 711 // optimizing compiler. Enable it for other modes (product, release) if needed
711 // for debugging. 712 // for debugging.
712 #if defined(DEBUG) 713 #if defined(DEBUG)
713 #define TAG_IC_DATA 714 #define TAG_IC_DATA
714 #endif 715 #endif
715 716
716 } // namespace dart 717 } // namespace dart
717 718
718 #endif // RUNTIME_PLATFORM_GLOBALS_H_ 719 #endif // RUNTIME_PLATFORM_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698