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

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

Issue 1234953003: Add STDOUT_FILENO, etc., for windows build. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 #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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 // 586 //
587 // N.B.: As the GCC manual states, "[s]ince non-static C++ methods 587 // N.B.: As the GCC manual states, "[s]ince non-static C++ methods
588 // have an implicit 'this' argument, the arguments of such methods 588 // have an implicit 'this' argument, the arguments of such methods
589 // should be counted from two, not one." 589 // should be counted from two, not one."
590 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \ 590 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \
591 __attribute__((__format__(__printf__, string_index, first_to_check))) 591 __attribute__((__format__(__printf__, string_index, first_to_check)))
592 #else 592 #else
593 #define PRINTF_ATTRIBUTE(string_index, first_to_check) 593 #define PRINTF_ATTRIBUTE(string_index, first_to_check)
594 #endif 594 #endif
595 595
596 #if defined(_WIN32)
597 #define STDIN_FILENO 0
598 #define STDOUT_FILENO 1
599 #define STDERR_FILENO 2
600 #endif
601
596 } // namespace dart 602 } // namespace dart
597 603
598 #endif // PLATFORM_GLOBALS_H_ 604 #endif // PLATFORM_GLOBALS_H_
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