Export _tzname, expected by Mozilla.
This commit is contained in:
parent
21be2f734e
commit
576aa4a6d8
|
@ -122,7 +122,7 @@
|
|||
@ cdecl __p__pgmptr()
|
||||
@ stub __p__pwctype #()
|
||||
@ cdecl __p__timezone()
|
||||
@ stub __p__tzname #()
|
||||
@ cdecl __p__tzname()
|
||||
@ cdecl __p__wcmdln()
|
||||
@ cdecl __p__wenviron()
|
||||
@ cdecl __p__winmajor()
|
||||
|
@ -472,7 +472,7 @@
|
|||
# extern _timezone
|
||||
@ cdecl _tolower(long) MSVCRT__tolower
|
||||
@ cdecl _toupper(long) MSVCRT__toupper
|
||||
# extern _tzname
|
||||
@ extern _tzname MSVCRT__tzname
|
||||
@ cdecl _tzset() tzset
|
||||
@ cdecl _ui64toa(long long ptr long) ntdll._ui64toa
|
||||
@ cdecl _ui64tow(long long ptr long) ntdll._ui64tow
|
||||
|
|
|
@ -309,3 +309,22 @@ void *MSVCRT___p__daylight(void)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue