msvcr100: Implement _get_daylight.
This commit is contained in:
parent
f02cdd877f
commit
3f39f377c8
|
@ -473,6 +473,17 @@ int CDECL _get_timezone(LONG *timezone)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* _get_daylight (MSVCR100.@)
|
||||||
|
*/
|
||||||
|
int CDECL _get_daylight(int *hours)
|
||||||
|
{
|
||||||
|
if(!CHECK_PMT(hours != NULL)) return EINVAL;
|
||||||
|
|
||||||
|
*hours = *(int*)GetProcAddress(GetModuleHandleA("msvcrt.dll"), "_daylight");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* copied from dlls/msvcrt/heap.c */
|
/* copied from dlls/msvcrt/heap.c */
|
||||||
#define SAVED_PTR(x) ((void *)((DWORD_PTR)((char *)x - sizeof(void *)) & \
|
#define SAVED_PTR(x) ((void *)((DWORD_PTR)((char *)x - sizeof(void *)) & \
|
||||||
~(sizeof(void *) - 1)))
|
~(sizeof(void *) - 1)))
|
||||||
|
|
|
@ -866,7 +866,7 @@
|
||||||
@ cdecl _gcvt(double long str) msvcrt._gcvt
|
@ cdecl _gcvt(double long str) msvcrt._gcvt
|
||||||
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
||||||
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
||||||
@ stub _get_daylight
|
@ cdecl _get_daylight(ptr)
|
||||||
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
||||||
@ stub _get_dstbias
|
@ stub _get_dstbias
|
||||||
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
||||||
|
|
|
@ -1218,7 +1218,7 @@
|
||||||
@ cdecl _gcvt(double long str) msvcrt._gcvt
|
@ cdecl _gcvt(double long str) msvcrt._gcvt
|
||||||
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
||||||
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
||||||
@ stub _get_daylight
|
@ cdecl _get_daylight(ptr) msvcr100._get_daylight
|
||||||
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
||||||
@ stub _get_dstbias
|
@ stub _get_dstbias
|
||||||
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
||||||
|
|
|
@ -520,7 +520,7 @@
|
||||||
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
||||||
@ stub _get_amblksiz
|
@ stub _get_amblksiz
|
||||||
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
||||||
@ stub _get_daylight
|
@ cdecl _get_daylight(ptr) msvcr100._get_daylight
|
||||||
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
||||||
@ stub _get_dstbias
|
@ stub _get_dstbias
|
||||||
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
||||||
|
|
|
@ -515,7 +515,7 @@
|
||||||
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
|
||||||
@ stub _get_amblksiz
|
@ stub _get_amblksiz
|
||||||
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
@ cdecl _get_current_locale() msvcrt._get_current_locale
|
||||||
@ stub _get_daylight
|
@ cdecl _get_daylight(ptr) msvcr100._get_daylight
|
||||||
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
|
||||||
@ stub _get_dstbias
|
@ stub _get_dstbias
|
||||||
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
@ cdecl _get_errno(ptr) msvcrt._get_errno
|
||||||
|
|
Loading…
Reference in New Issue