Commit 576aa4a6 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

Export _tzname, expected by Mozilla.

parent 21be2f73
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
@ cdecl __p__pgmptr() @ cdecl __p__pgmptr()
@ stub __p__pwctype #() @ stub __p__pwctype #()
@ cdecl __p__timezone() @ cdecl __p__timezone()
@ stub __p__tzname #() @ cdecl __p__tzname()
@ cdecl __p__wcmdln() @ cdecl __p__wcmdln()
@ cdecl __p__wenviron() @ cdecl __p__wenviron()
@ cdecl __p__winmajor() @ cdecl __p__winmajor()
...@@ -472,7 +472,7 @@ ...@@ -472,7 +472,7 @@
# extern _timezone # extern _timezone
@ cdecl _tolower(long) MSVCRT__tolower @ cdecl _tolower(long) MSVCRT__tolower
@ cdecl _toupper(long) MSVCRT__toupper @ cdecl _toupper(long) MSVCRT__toupper
# extern _tzname @ extern _tzname MSVCRT__tzname
@ cdecl _tzset() tzset @ cdecl _tzset() tzset
@ cdecl _ui64toa(long long ptr long) ntdll._ui64toa @ cdecl _ui64toa(long long ptr long) ntdll._ui64toa
@ cdecl _ui64tow(long long ptr long) ntdll._ui64tow @ cdecl _ui64tow(long long ptr long) ntdll._ui64tow
......
...@@ -309,3 +309,22 @@ void *MSVCRT___p__daylight(void) ...@@ -309,3 +309,22 @@ void *MSVCRT___p__daylight(void)
{ {
return &MSVCRT___daylight; return &MSVCRT___daylight;
} }
/*********************************************************************
* _tzname (MSVCRT.@)
* NOTES
* Some apps (notably Mozilla) insist on writing to these, so the buffer
* must be large enough. The size is picked based on observation of
* Windows XP.
*/
static char tzname_std[64] = ""; /* FIXME: initialize */
static char tzname_dst[64] = ""; /* FIXME: initialize */
char *MSVCRT__tzname[2] = { tzname_std, tzname_dst };
/*********************************************************************
* __p_tzname (MSVCRT.@)
*/
char **__p__tzname(void)
{
return MSVCRT__tzname;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment