mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
b0df6c1fce
Cosmopolitan now supports 104 time zones. They're embedded inside any binary that links the localtime() function. Doing so adds about 100kb to the binary size. This change also gets time zones working properly on Windows for the first time. It's not needed to have /etc/localtime exist on Windows, since we can get this information from WIN32. We're also now updated to the latest version of Paul Eggert's TZ library.
20 lines
410 B
ArmAsm
20 lines
410 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp kernel32,__imp_GetDynamicTimeZoneInformation,GetDynamicTimeZoneInformation
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
GetDynamicTimeZoneInformation:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov %rdi,%rcx
|
|
sub $32,%rsp
|
|
call *__imp_GetDynamicTimeZoneInformation(%rip)
|
|
leave
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
#endif
|
|
ret
|
|
.endfn GetDynamicTimeZoneInformation,globl
|
|
.previous
|