| 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 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) |
| 7 |
| 5 #include "vm/os.h" | 8 #include "vm/os.h" |
| 6 | 9 |
| 7 #include <malloc.h> | 10 #include <malloc.h> // NOLINT |
| 8 #include <time.h> | 11 #include <time.h> // NOLINT |
| 9 | 12 |
| 10 #include "platform/utils.h" | 13 #include "platform/utils.h" |
| 11 #include "platform/assert.h" | 14 #include "platform/assert.h" |
| 12 | 15 |
| 13 namespace dart { | 16 namespace dart { |
| 14 | 17 |
| 15 // As a side-effect sets the globals _timezone, _daylight and _tzname. | 18 // As a side-effect sets the globals _timezone, _daylight and _tzname. |
| 16 static bool LocalTime(int64_t seconds_since_epoch, tm* tm_result) { | 19 static bool LocalTime(int64_t seconds_since_epoch, tm* tm_result) { |
| 17 time_t seconds = static_cast<time_t>(seconds_since_epoch); | 20 time_t seconds = static_cast<time_t>(seconds_since_epoch); |
| 18 if (seconds != seconds_since_epoch) return false; | 21 if (seconds != seconds_since_epoch) return false; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 void OS::Abort() { | 286 void OS::Abort() { |
| 284 abort(); | 287 abort(); |
| 285 } | 288 } |
| 286 | 289 |
| 287 | 290 |
| 288 void OS::Exit(int code) { | 291 void OS::Exit(int code) { |
| 289 exit(code); | 292 exit(code); |
| 290 } | 293 } |
| 291 | 294 |
| 292 } // namespace dart | 295 } // namespace dart |
| 296 |
| 297 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |