msvcrt: export _tzname variable
Steven Edwards
steven_ed4153 at yahoo.com
Sat May 8 12:15:43 CDT 2004
I dont know if this is correct but this lets the Mozilla XPCOM issues I
have been seeing get slightly further along. The daylight timezone
issues in ntdll seem to be the showstopppers at the moment.
Changelog:
Filip Navara <xnavara at volny.cz>
Implement and export _tzname variable from MSVCRT
Index: wine/dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.89
diff -u -r1.89 msvcrt.spec
--- wine/dlls/msvcrt/msvcrt.spec 24 Mar 2004 23:38:16 -0000 1.89
+++ wine/dlls/msvcrt/msvcrt.spec 8 May 2004 17:12:48 -0000
@@ -472,7 +472,7 @@
@ stub _timezone # extern
@ cdecl _tolower(long) MSVCRT__tolower
@ cdecl _toupper(long) MSVCRT__toupper
-@ stub _tzname # extern
+@ extern _tzname MSVCRT_tzname
@ cdecl _tzset() tzset
@ cdecl _ui64toa(long long ptr long) ntdll._ui64toa
@ cdecl _ui64tow(long long ptr long) ntdll._ui64tow
Index: wine/dlls/msvcrt/time.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/time.c,v
retrieving revision 1.14
diff -u -r1.14 time.c
--- wine/dlls/msvcrt/time.c 25 Mar 2004 00:12:40 -0000 1.14
+++ wine/dlls/msvcrt/time.c 8 May 2004 17:12:49 -0000
@@ -60,6 +60,13 @@
/* native uses a single static buffer for localtime/gmtime/mktime */
static struct MSVCRT_tm tm;
+static char tzstd[64] = {'P','S','T'};
+static char tzdst[64] = {'P','D','T'};
+char *MSVCRT_tzname[2] = {
+ tzstd,
+ tzdst
+};
+
/**********************************************************************
* mktime (MSVCRT.@)
*/
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
More information about the wine-patches
mailing list