OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
Ivan Posva
2012/01/10 00:28:09
Why is time going backward here?
Mads Ager (google)
2012/01/10 06:55:05
I misunderstood your comments on the original code
| |
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 to enable platform independent printf. | 8 // __STDC_FORMAT_MACROS has to be defined to enable platform independent printf. |
9 #ifndef __STDC_FORMAT_MACROS | 9 #ifndef __STDC_FORMAT_MACROS |
10 #define __STDC_FORMAT_MACROS | 10 #define __STDC_FORMAT_MACROS |
11 #endif | 11 #endif |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 | 96 |
97 | 97 |
98 // On Windows the reentrent version of strtok is called | 98 // On Windows the reentrent version of strtok is called |
99 // strtok_s. Unify on the posix name strtok_r. | 99 // strtok_s. Unify on the posix name strtok_r. |
100 #if defined(TARGET_OS_WINDOWS) | 100 #if defined(TARGET_OS_WINDOWS) |
101 #define snprintf _snprintf | 101 #define snprintf _snprintf |
102 #define strtok_r strtok_s | 102 #define strtok_r strtok_s |
103 #endif | 103 #endif |
104 | 104 |
105 #endif // PLATFORM_GLOBALS_H_ | 105 #endif // PLATFORM_GLOBALS_H_ |
OLD | NEW |