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
88d6f8ac
Commit
88d6f8ac
authored
Jan 13, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add localtime_s.
Needed to compile Tera Term.
parent
9844a694
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
time.h
include/msvcrt/time.h
+2
-0
No files found.
include/msvcrt/time.h
View file @
88d6f8ac
...
...
@@ -97,6 +97,7 @@ static inline errno_t ctime_s(char *res, size_t len, const __time64_t *t) { retu
static
inline
double
difftime
(
time_t
t1
,
time_t
t2
)
{
return
_difftime64
(
t1
,
t2
);
}
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
errno_t
localtime_s
(
struct
tm
*
res
,
const
time_t
*
t
)
{
return
_localtime64_s
(
res
,
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)
...
...
@@ -105,6 +106,7 @@ static inline errno_t ctime_s(char *res, size_t len, const __time32_t *t) { retu
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
errno_t
localtime_s
(
struct
tm
*
res
,
const
time_t
*
t
)
{
return
_localtime32_s
(
res
,
t
);
}
static
inline
time_t
mktime
(
struct
tm
*
tm
)
{
return
_mktime32
(
tm
);
}
static
inline
time_t
time
(
time_t
*
t
)
{
return
_time32
(
t
);
}
#endif
...
...
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