Commit 6b2a9b30 authored by Alexandre Julliard's avatar Alexandre Julliard

Added implementation of _dstbias and __p__dstbias.

Added macros for _dstbias, _daylight, _timezone and _tzname.
parent b09582a8
......@@ -110,7 +110,7 @@
@ cdecl __p__amblksiz()
@ cdecl __p__commode()
@ cdecl __p__daylight() MSVCRT___p__daylight
@ stub __p__dstbias #()
@ cdecl __p__dstbias()
@ cdecl __p__environ()
@ stub __p__fileinfo #()
@ cdecl __p__fmode()
......@@ -194,7 +194,7 @@
@ extern _ctype MSVCRT__ctype
@ cdecl _cwait(ptr long long)
@ extern _daylight MSVCRT___daylight
# extern _dstbias
@ extern _dstbias MSVCRT__dstbias
@ cdecl _dup (long)
@ cdecl _dup2 (long long)
@ cdecl _ecvt(double long ptr ptr)
......
......@@ -311,6 +311,19 @@ int *MSVCRT___p__daylight(void)
}
/*********************************************************************
* _dstbias (MSVCRT.@)
*/
int MSVCRT__dstbias = 0;
/*********************************************************************
* __p_dstbias (MSVCRT.@)
*/
int *__p__dstbias(void)
{
return &MSVCRT__dstbias;
}
/*********************************************************************
* _timezone (MSVCRT.@)
*/
long MSVCRT___timezone = 0;
......
......@@ -76,8 +76,15 @@ struct tm {
extern "C" {
#endif
/* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
#define _daylight (*__p__daylight())
#define _dstbias (*__p__dstbias())
#define _timezone (*__p__timezone())
#define _tzname (__p__tzname())
int *__p__daylight(void);
long *__p__dstbias(void);
long *__p__timezone(void);
char **__p__tzname(void);
unsigned _getsystime(struct tm*);
unsigned _setsystime(struct tm*,unsigned);
......
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