diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-04-13 17:33:02 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-05-19 10:08:43 -0700 |
| commit | e7ca3e4db02d7d87dd7a2172394e08fbb92b8fb2 (patch) | |
| tree | 85e99c02274bf82a499033fe4448b114ce5d2d85 /src/rt/rust_builtin.cpp | |
| parent | 047f629b31e1af929923b54239d83059263d995b (diff) | |
| download | rust-e7ca3e4db02d7d87dd7a2172394e08fbb92b8fb2.tar.gz rust-e7ca3e4db02d7d87dd7a2172394e08fbb92b8fb2.zip | |
expose tzset
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 8f5c3c6fa14..aa7597f6a26 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -530,6 +530,11 @@ struct tm* LOCALTIME(const time_t *clock, tm *result) { #endif extern "C" CDECL void +rust_tzset() { + TZSET(); +} + +extern "C" CDECL void rust_gmtime(int64_t *sec, int32_t *nsec, rust_tm *timeptr) { tm tm; time_t s = *sec; @@ -541,7 +546,6 @@ rust_gmtime(int64_t *sec, int32_t *nsec, rust_tm *timeptr) { extern "C" CDECL void rust_localtime(int64_t *sec, int32_t *nsec, rust_tm *timeptr) { tm tm; - TZSET(); time_t s = *sec; LOCALTIME(&s, &tm); |
