From dbcbbe0211f0d9dae2af36f9599d98babe6ac897 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 4 Mar 2003 02:19:15 +0000 Subject: [PATCH] Added _daylight stub int, and __p__daylight function. --- dlls/msvcrt/msvcrt.spec | 4 ++-- dlls/msvcrt/time.c | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 8665ea58aa0..88b69aa9511 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -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 diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c index 963efed81db..8304c06c0be 100644 --- a/dlls/msvcrt/time.c +++ b/dlls/msvcrt/time.c @@ -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) { @@ -141,3 +140,16 @@ void _ftime(struct _timeb *buf) buf->timezone = 0; buf->dstflag = 0; } + +/********************************************************************* + * _daylight (MSVCRT.@) + */ +int MSVCRT___daylight = 1; /* FIXME: assume daylight */ + +/********************************************************************* + * __p_daylight (MSVCRT.@) + */ +void *MSVCRT___p__daylight(void) +{ + return &MSVCRT___daylight; +}