PATCH: _*daylight
Marcus Meissner
marcus at jet.franken.de
Sun Mar 2 15:56:01 CST 2003
Hi,
Ciao, Marcus
Changelog:
Added _daylight stub int, and __p__daylight function.
Index: dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.63
diff -u -r1.63 msvcrt.spec
--- dlls/msvcrt/msvcrt.spec 14 Feb 2003 23:26:58 -0000 1.63
+++ dlls/msvcrt/msvcrt.spec 2 Mar 2003 21:54:08 -0000
@@ -109,7 +109,7 @@
@ cdecl __p__acmdln() __p__acmdln
@ stub __p__amblksiz #()
@ cdecl __p__commode() __p__commode
-@ stub __p__daylight #()
+@ cdecl __p__daylight() MSVCRT___p__daylight
@ stub __p__dstbias #()
@ cdecl __p__environ() __p__environ
@ stub __p__fileinfo #()
@@ -193,7 +193,7 @@
@ varargs _cscanf(str) _cscanf
@ extern _ctype MSVCRT__ctype
@ cdecl _cwait(ptr long long) _cwait
-@ stub _daylight
+@ extern _daylight MSVCRT___daylight
@ stub _dstbias
@ cdecl _dup (long) _dup
@ cdecl _dup2 (long long) _dup2
Index: dlls/msvcrt/time.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/time.c,v
retrieving revision 1.10
diff -u -r1.10 time.c
--- dlls/msvcrt/time.c 26 Aug 2002 21:53:25 -0000 1.10
+++ dlls/msvcrt/time.c 2 Mar 2003 21:54:08 -0000
@@ -37,7 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
-
/* INTERNAL: Return formatted current time/date */
char* msvcrt_get_current_time(char* out, const char* format)
{
@@ -140,4 +139,16 @@
buf->millitm = 0; /* FIXME */
buf->timezone = 0;
buf->dstflag = 0;
+}
+
+/*********************************************************************
+ * _daylight (MSVCRT.@)
+ */
+int MSVCRT___daylight = 1; /* FIXME: assume daylight */
+
+/*********************************************************************
+ * __p_daylight (MSVCRT.@)
+ */
+void *MSVCRT___p__daylight() {
+ return &MSVCRT___daylight;
}
More information about the wine-patches
mailing list