| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |