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
9844a694
Commit
9844a694
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 ctime_s.
Needed to compile Tera Term.
parent
261d7418
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
time.h
include/msvcrt/time.h
+4
-0
No files found.
include/msvcrt/time.h
View file @
9844a694
...
...
@@ -74,7 +74,9 @@ _ACRTIMP void __cdecl _tzset(void);
_ACRTIMP
char
*
__cdecl
asctime
(
const
struct
tm
*
);
_ACRTIMP
clock_t
__cdecl
clock
(
void
);
_ACRTIMP
char
*
__cdecl
_ctime32
(
const
__time32_t
*
);
_ACRTIMP
errno_t
__cdecl
_ctime32_s
(
char
*
,
size_t
,
const
__time32_t
*
);
_ACRTIMP
char
*
__cdecl
_ctime64
(
const
__time64_t
*
);
_ACRTIMP
errno_t
__cdecl
_ctime64_s
(
char
*
,
size_t
,
const
__time64_t
*
);
_ACRTIMP
double
__cdecl
_difftime32
(
__time32_t
,
__time32_t
);
_ACRTIMP
double
__cdecl
_difftime64
(
__time64_t
,
__time64_t
);
_ACRTIMP
struct
tm
*
__cdecl
_gmtime32
(
const
__time32_t
*
);
...
...
@@ -91,6 +93,7 @@ _ACRTIMP __time64_t __cdecl _time64(__time64_t*);
#ifndef _USE_32BIT_TIME_T
static
inline
char
*
ctime
(
const
time_t
*
t
)
{
return
_ctime64
(
t
);
}
static
inline
errno_t
ctime_s
(
char
*
res
,
size_t
len
,
const
__time64_t
*
t
)
{
return
_ctime64_s
(
res
,
len
,
t
);
}
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
);
}
...
...
@@ -98,6 +101,7 @@ 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
errno_t
ctime_s
(
char
*
res
,
size_t
len
,
const
__time32_t
*
t
)
{
return
_ctime32_s
(
res
,
len
,
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
);
}
...
...
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