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
61526f80
Commit
61526f80
authored
Feb 26, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Make time.h compatible with ucrt.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
655017af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
time.h
include/msvcrt/time.h
+8
-1
No files found.
include/msvcrt/time.h
View file @
61526f80
...
...
@@ -54,7 +54,7 @@ extern __msvcrt_long _timezone;
extern
char
*
_tzname
;
#endif
#if
def _USE_32BIT_TIME_T
#if
!defined(_UCRT) && defined(_USE_32BIT_TIME_T)
#define _ctime32 ctime
#define _difftime32 difftime
#define _gmtime32 gmtime
...
...
@@ -96,6 +96,13 @@ static inline struct tm* gmtime(const time_t *t) { return _gmtime64(t); }
static
inline
struct
tm
*
localtime
(
const
time_t
*
t
)
{
return
_localtime64
(
t
);
}
static
inline
time_t
mktime
(
struct
tm
*
tm
)
{
return
_mktime64
(
tm
);
}
static
inline
time_t
time
(
time_t
*
t
)
{
return
_time64
(
t
);
}
#elif defined(_UCRT)
static
inline
char
*
ctime
(
const
time_t
*
t
)
{
return
_ctime32
(
t
);
}
static
inline
double
difftime
(
time_t
t1
,
time_t
t2
)
{
return
_difftime32
(
t1
,
t2
);
}
static
inline
struct
tm
*
gmtime
(
const
time_t
*
t
)
{
return
_gmtime32
(
t
);
}
static
inline
struct
tm
*
localtime
(
const
time_t
*
t
)
{
return
_localtime32
(
t
);
}
static
inline
time_t
mktime
(
struct
tm
*
tm
)
{
return
_mktime32
(
tm
);
}
static
inline
time_t
time
(
time_t
*
t
)
{
return
_time32
(
t
);
}
#endif
#ifdef __cplusplus
...
...
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