Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
78dc7af9
Commit
78dc7af9
authored
Mar 15, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add __daylight() call export.
parent
71265980
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
time.c
dlls/msvcrt/tests/time.c
+26
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
78dc7af9
...
...
@@ -392,7 +392,7 @@
@ cdecl __crtCompareStringW(long long wstr long wstr long) msvcrt.__crtCompareStringW
@ cdecl __crtLCMapStringA(long long str long ptr long long long) msvcrt.__crtLCMapStringA
@ cdecl __crtLCMapStringW(long long wstr long ptr long long long) msvcrt.__crtLCMapStringW
@
stub
__daylight
@
cdecl __daylight() msvcrt.
__daylight
@ cdecl __dllonexit(ptr ptr ptr) msvcrt.__dllonexit
@ cdecl __doserrno() msvcrt.__doserrno
@ stub __dstbias
...
...
dlls/msvcr80/msvcr80.spec
View file @
78dc7af9
...
...
@@ -205,7 +205,7 @@
@ cdecl __crtGetStringTypeW(long long wstr long ptr) msvcrt.__crtGetStringTypeW
@ cdecl __crtLCMapStringA(long long str long ptr long long long) msvcrt.__crtLCMapStringA
@ cdecl __crtLCMapStringW(long long wstr long ptr long long long) msvcrt.__crtLCMapStringW
@
stub
__daylight
@
cdecl __daylight() msvcrt.
__daylight
@ cdecl __dllonexit(ptr ptr ptr) msvcrt.__dllonexit
@ cdecl __doserrno() msvcrt.__doserrno
@ stub __dstbias
...
...
dlls/msvcr90/msvcr90.spec
View file @
78dc7af9
...
...
@@ -202,7 +202,7 @@
@ cdecl __crtGetStringTypeW(long long wstr long ptr) msvcrt.__crtGetStringTypeW
@ cdecl __crtLCMapStringA(long long str long ptr long long long) msvcrt.__crtLCMapStringA
@ cdecl __crtLCMapStringW(long long wstr long ptr long long long) msvcrt.__crtLCMapStringW
@
stub
__daylight
@
cdecl __daylight() msvcrt.
__daylight
@ cdecl __dllonexit(ptr ptr ptr) msvcrt.__dllonexit
@ cdecl __doserrno() msvcrt.__doserrno
@ stub __dstbias
...
...
dlls/msvcrt/msvcrt.spec
View file @
78dc7af9
...
...
@@ -179,7 +179,7 @@
@ cdecl __crtGetStringTypeW(long long wstr long ptr)
@ cdecl __crtLCMapStringA(long long str long ptr long long long)
@ cdecl __crtLCMapStringW(long long wstr long ptr long long long)
# stub
__daylight
@ cdecl __daylight() MSVCRT___p
__daylight
@ cdecl __dllonexit(ptr ptr ptr)
@ cdecl __doserrno() MSVCRT___doserrno
# stub __dstbias
...
...
dlls/msvcrt/tests/time.c
View file @
78dc7af9
...
...
@@ -42,6 +42,8 @@ static errno_t (__cdecl *p_strtime_s)(char*,size_t);
static
errno_t
(
__cdecl
*
p_strdate_s
)(
char
*
,
size_t
);
static
errno_t
(
__cdecl
*
p_localtime32_s
)(
struct
tm
*
,
__time32_t
*
);
static
errno_t
(
__cdecl
*
p_localtime64_s
)(
struct
tm
*
,
__time64_t
*
);
static
int
*
(
__cdecl
*
p__daylight
)(
void
);
static
int
*
(
__cdecl
*
p___p__daylight
)(
void
);
static
void
init
(
void
)
{
...
...
@@ -54,6 +56,8 @@ static void init(void)
p_strdate_s
=
(
void
*
)
GetProcAddress
(
hmod
,
"_strdate_s"
);
p_localtime32_s
=
(
void
*
)
GetProcAddress
(
hmod
,
"_localtime32_s"
);
p_localtime64_s
=
(
void
*
)
GetProcAddress
(
hmod
,
"_localtime64_s"
);
p__daylight
=
(
void
*
)
GetProcAddress
(
hmod
,
"__daylight"
);
p___p__daylight
=
(
void
*
)
GetProcAddress
(
hmod
,
"__p__daylight"
);
}
static
int
get_test_year
(
time_t
*
start
)
...
...
@@ -543,6 +547,27 @@ static void test_localtime64_s(void)
tm
.
tm_isdst
);
}
static
void
test_daylight
(
void
)
{
int
*
ret1
,
*
ret2
;
if
(
!
p__daylight
)
{
win_skip
(
"__daylight() not available
\n
"
);
return
;
}
if
(
!
p___p__daylight
)
{
win_skip
(
"__p__daylight not available
\n
"
);
return
;
}
ret1
=
p__daylight
();
ret2
=
p___p__daylight
();
ok
(
ret1
&&
ret1
==
ret2
,
"got %p
\n
"
,
ret1
);
}
START_TEST
(
time
)
{
init
();
...
...
@@ -557,4 +582,5 @@ START_TEST(time)
test_wstrtime
();
test_localtime32_s
();
test_localtime64_s
();
test_daylight
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment