4 * Copyright 2000 Francois Gouget.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
27 # ifdef USE_MSVCRT_PREFIX
28 # define MSVCRT(x) MSVCRT_##x
34 #ifndef MSVCRT_WCHAR_T_DEFINED
35 #define MSVCRT_WCHAR_T_DEFINED
37 typedef unsigned short MSVCRT(wchar_t);
41 #ifndef MSVCRT_SIZE_T_DEFINED
42 typedef unsigned int MSVCRT(size_t);
43 #define MSVCRT_SIZE_T_DEFINED
46 #ifndef MSVCRT_TIME_T_DEFINED
47 typedef long MSVCRT(time_t);
48 #define MSVCRT_TIME_T_DEFINED
51 #ifndef MSVCRT_CLOCK_T_DEFINED
52 typedef long MSVCRT(clock_t);
53 #define MSVCRT_CLOCK_T_DEFINED
60 #define NULL ((void *)0)
64 #ifndef CLOCKS_PER_SEC
65 #define CLOCKS_PER_SEC 1000
68 #ifndef MSVCRT_TM_DEFINED
69 #define MSVCRT_TM_DEFINED
81 #endif /* MSVCRT_TM_DEFINED */
87 /* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
90 unsigned _getsystime(struct MSVCRT(tm
)*);
91 unsigned _setsystime(struct MSVCRT(tm
)*,unsigned);
92 char* _strdate(char*);
93 char* _strtime(char*);
96 char* MSVCRT(asctime
)(const struct MSVCRT(tm
)*);
97 MSVCRT(clock_t) MSVCRT(clock
)(void);
98 char* MSVCRT(ctime
)(const MSVCRT(time_t)*);
99 double MSVCRT(difftime
)(MSVCRT(time_t),MSVCRT(time_t));
100 struct MSVCRT(tm
)* MSVCRT(gmtime
)(const MSVCRT(time_t)*);
101 struct MSVCRT(tm
)* MSVCRT(localtime
)(const MSVCRT(time_t)*);
102 MSVCRT(time_t) MSVCRT(mktime
)(struct MSVCRT(tm
)*);
103 size_t MSVCRT(strftime
)(char*,size_t,const char*,const struct MSVCRT(tm
)*);
104 MSVCRT(time_t) MSVCRT(time
)(MSVCRT(time_t)*);
106 #ifndef MSVCRT_WTIME_DEFINED
107 #define MSVCRT_WTIME_DEFINED
108 MSVCRT(wchar_t)* MSVCRT(_wasctime
)(const struct MSVCRT(tm
)*);
109 MSVCRT(size_t) MSVCRT(wcsftime
)(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm
)*);
110 MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
111 MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
112 MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
113 #endif /* MSVCRT_WTIME_DEFINED */
119 #endif /* __WINE_TIME_H */