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

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

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 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 | « runtime/dart-runtime.gyp ('k') | runtime/platform/utils.h » ('j') | 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 #ifndef PLATFORM_GLOBALS_H_ 5 #ifndef PLATFORM_GLOBALS_H_
6 #define PLATFORM_GLOBALS_H_ 6 #define 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #endif 81 #endif
82 82
83 // Target OS detection. 83 // Target OS detection.
84 // for more information on predefined macros: 84 // for more information on predefined macros:
85 // - http://msdn.microsoft.com/en-us/library/b0084kay.aspx 85 // - http://msdn.microsoft.com/en-us/library/b0084kay.aspx
86 // - with gcc, run: "echo | gcc -E -dM -" 86 // - with gcc, run: "echo | gcc -E -dM -"
87 #if defined(__ANDROID__) 87 #if defined(__ANDROID__)
88 #define TARGET_OS_ANDROID 1 88 #define TARGET_OS_ANDROID 1
89 #elif defined(__linux__) || defined(__FreeBSD__) 89 #elif defined(__linux__) || defined(__FreeBSD__)
90 #define TARGET_OS_LINUX 1 90 #define TARGET_OS_LINUX 1
91 #elif defined(__OpenBSD__)
92 #define TARGET_OS_OPENBSD 1
91 #elif defined(__APPLE__) 93 #elif defined(__APPLE__)
92 // Define the flavor of Mac OS we are running on. 94 // Define the flavor of Mac OS we are running on.
93 #include <TargetConditionals.h> 95 #include <TargetConditionals.h>
94 // TODO(iposva): Rename TARGET_OS_MACOS to TARGET_OS_MAC to inherit 96 // TODO(iposva): Rename TARGET_OS_MACOS to TARGET_OS_MAC to inherit
95 // the value defined in TargetConditionals.h 97 // the value defined in TargetConditionals.h
96 #define TARGET_OS_MACOS 1 98 #define TARGET_OS_MACOS 1
97 #if TARGET_OS_IPHONE 99 #if TARGET_OS_IPHONE
98 #define TARGET_OS_IOS 1 100 #define TARGET_OS_IOS 1
99 #endif 101 #endif
100 102
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 616
615 #if defined(_WIN32) 617 #if defined(_WIN32)
616 #define STDIN_FILENO 0 618 #define STDIN_FILENO 0
617 #define STDOUT_FILENO 1 619 #define STDOUT_FILENO 1
618 #define STDERR_FILENO 2 620 #define STDERR_FILENO 2
619 #endif 621 #endif
620 622
621 } // namespace dart 623 } // namespace dart
622 624
623 #endif // PLATFORM_GLOBALS_H_ 625 #endif // PLATFORM_GLOBALS_H_
OLDNEW
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | runtime/platform/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698