msvcr100: Implement _get_daylight.

This commit is contained in:
Daniel Lehman 2013-04-12 12:57:49 -07:00 committed by Alexandre Julliard
parent f02cdd877f
commit 3f39f377c8
5 changed files with 15 additions and 4 deletions

View File

@ -473,6 +473,17 @@ int CDECL _get_timezone(LONG *timezone)
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 */
#define SAVED_PTR(x) ((void *)((DWORD_PTR)((char *)x - sizeof(void *)) & \
~(sizeof(void *) - 1)))

View File

@ -866,7 +866,7 @@
@ cdecl _gcvt(double long str) msvcrt._gcvt
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
@ cdecl _get_current_locale() msvcrt._get_current_locale
@ stub _get_daylight
@ cdecl _get_daylight(ptr)
@ cdecl _get_doserrno(ptr) msvcrt._get_doserrno
@ stub _get_dstbias
@ cdecl _get_errno(ptr) msvcrt._get_errno

View File

@ -1218,7 +1218,7 @@
@ cdecl _gcvt(double long str) msvcrt._gcvt
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
@ 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
@ stub _get_dstbias
@ cdecl _get_errno(ptr) msvcrt._get_errno

View File

@ -520,7 +520,7 @@
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
@ stub _get_amblksiz
@ 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
@ stub _get_dstbias
@ cdecl _get_errno(ptr) msvcrt._get_errno

View File

@ -515,7 +515,7 @@
@ cdecl _gcvt_s(ptr long double long) msvcrt._gcvt_s
@ stub _get_amblksiz
@ 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
@ stub _get_dstbias
@ cdecl _get_errno(ptr) msvcrt._get_errno