Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f0779722
Commit
f0779722
authored
Feb 20, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add corecrt_wtime.h file.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
62d43ed4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
75 deletions
+51
-75
Makefile.in
include/Makefile.in
+1
-0
corecrt_wtime.h
include/msvcrt/corecrt_wtime.h
+48
-0
time.h
include/msvcrt/time.h
+1
-38
wchar.h
include/msvcrt/wchar.h
+1
-37
No files found.
include/Makefile.in
View file @
f0779722
...
...
@@ -427,6 +427,7 @@ SOURCES = \
msvcrt/corecrt_stdio_config.h
\
msvcrt/corecrt_wio.h
\
msvcrt/corecrt_wstdio.h
\
msvcrt/corecrt_wtime.h
\
msvcrt/crtdbg.h
\
msvcrt/crtdefs.h
\
msvcrt/ctype.h
\
...
...
include/msvcrt/corecrt_wtime.h
0 → 100644
View file @
f0779722
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the Wine project.
*/
#ifndef _WTIME_DEFINED
#define _WTIME_DEFINED
#include <corecrt.h>
struct
tm
{
int
tm_sec
;
int
tm_min
;
int
tm_hour
;
int
tm_mday
;
int
tm_mon
;
int
tm_year
;
int
tm_wday
;
int
tm_yday
;
int
tm_isdst
;
};
#ifdef _USE_32BIT_TIME_T
#define _wctime32 _wctime
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
wchar_t
*
__cdecl
_wasctime
(
const
struct
tm
*
);
size_t
__cdecl
wcsftime
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
const
struct
tm
*
);
wchar_t
*
__cdecl
_wctime32
(
const
__time32_t
*
);
wchar_t
*
__cdecl
_wctime64
(
const
__time64_t
*
);
wchar_t
*
__cdecl
_wstrdate
(
wchar_t
*
);
errno_t
__cdecl
_wstrdate_s
(
wchar_t
*
,
size_t
);
wchar_t
*
__cdecl
_wstrtime
(
wchar_t
*
);
errno_t
__cdecl
_wstrtime_s
(
wchar_t
*
,
size_t
);
#ifndef _USE_32BIT_TIME_T
static
inline
wchar_t
*
_wctime
(
const
time_t
*
t
)
{
return
_wctime64
(
t
);
}
#endif
#ifdef __cplusplus
}
#endif
#endif
/* _WTIME_DEFINED */
include/msvcrt/time.h
View file @
f0779722
...
...
@@ -20,7 +20,7 @@
#ifndef __WINE_TIME_H
#define __WINE_TIME_H
#include <corecrt.h>
#include <corecrt
_wtime
.h>
#include <pshpack8.h>
...
...
@@ -33,21 +33,6 @@ typedef __msvcrt_long clock_t;
#define CLOCKS_PER_SEC 1000
#endif
#ifndef _TM_DEFINED
#define _TM_DEFINED
struct
tm
{
int
tm_sec
;
int
tm_min
;
int
tm_hour
;
int
tm_mday
;
int
tm_mon
;
int
tm_year
;
int
tm_wday
;
int
tm_yday
;
int
tm_isdst
;
};
#endif
/* _TM_DEFINED */
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -113,28 +98,6 @@ static inline time_t mktime(struct tm *tm) { return _mktime64(tm); }
static
inline
time_t
time
(
time_t
*
t
)
{
return
_time64
(
t
);
}
#endif
#ifndef _WTIME_DEFINED
#define _WTIME_DEFINED
#ifdef _USE_32BIT_TIME_T
#define _wctime32 _wctime
#endif
wchar_t
*
__cdecl
_wasctime
(
const
struct
tm
*
);
size_t
__cdecl
wcsftime
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
const
struct
tm
*
);
wchar_t
*
__cdecl
_wctime32
(
const
__time32_t
*
);
wchar_t
*
__cdecl
_wctime64
(
const
__time64_t
*
);
wchar_t
*
__cdecl
_wstrdate
(
wchar_t
*
);
errno_t
__cdecl
_wstrdate_s
(
wchar_t
*
,
size_t
);
wchar_t
*
__cdecl
_wstrtime
(
wchar_t
*
);
errno_t
__cdecl
_wstrtime_s
(
wchar_t
*
,
size_t
);
#ifndef _USE_32BIT_TIME_T
static
inline
wchar_t
*
_wctime
(
const
time_t
*
t
)
{
return
_wctime64
(
t
);
}
#endif
#endif
/* _WTIME_DEFINED */
#ifdef __cplusplus
}
#endif
...
...
include/msvcrt/wchar.h
View file @
f0779722
...
...
@@ -10,6 +10,7 @@
#include <corecrt_wstdio.h>
#include <corecrt_wio.h>
#include <corecrt_wtime.h>
#include <string.h>
#include <pshpack8.h>
...
...
@@ -50,21 +51,6 @@ typedef int _off_t;
#define _OFF_T_DEFINED
#endif
#ifndef _TM_DEFINED
#define _TM_DEFINED
struct
tm
{
int
tm_sec
;
int
tm_min
;
int
tm_hour
;
int
tm_mday
;
int
tm_mon
;
int
tm_year
;
int
tm_wday
;
int
tm_yday
;
int
tm_isdst
;
};
#endif
/* _TM_DEFINED */
#ifndef _STAT_DEFINED
#define _STAT_DEFINED
...
...
@@ -326,28 +312,6 @@ wchar_t* __cdecl wcstok(wchar_t*,const wchar_t*);
size_t
__cdecl
wcsxfrm
(
wchar_t
*
,
const
wchar_t
*
,
size_t
);
#endif
/* _WSTRING_DEFINED */
#ifndef _WTIME_DEFINED
#define _WTIME_DEFINED
#ifdef _USE_32BIT_TIME_T
#define _wctime32 _wctime
#endif
wchar_t
*
__cdecl
_wasctime
(
const
struct
tm
*
);
size_t
__cdecl
wcsftime
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
const
struct
tm
*
);
wchar_t
*
__cdecl
_wctime32
(
const
__time32_t
*
);
wchar_t
*
__cdecl
_wctime64
(
const
__time64_t
*
);
wchar_t
*
__cdecl
_wstrdate
(
wchar_t
*
);
errno_t
__cdecl
_wstrdate_s
(
wchar_t
*
,
size_t
);
wchar_t
*
__cdecl
_wstrtime
(
wchar_t
*
);
errno_t
__cdecl
_wstrtime_s
(
wchar_t
*
,
size_t
);
#ifndef _USE_32BIT_TIME_T
static
inline
wchar_t
*
_wctime
(
const
time_t
*
t
)
{
return
_wctime64
(
t
);
}
#endif
#endif
/* _WTIME_DEFINED */
wchar_t
__cdecl
btowc
(
int
);
size_t
__cdecl
mbrlen
(
const
char
*
,
size_t
,
mbstate_t
*
);
size_t
__cdecl
mbrtowc
(
wchar_t
*
,
const
char
*
,
size_t
,
mbstate_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