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
26 #ifndef _WCHAR_T_DEFINED
27 #define _WCHAR_T_DEFINED
29 typedef unsigned short wchar_t;
33 #ifndef _SIZE_T_DEFINED
34 typedef unsigned int size_t;
35 #define _SIZE_T_DEFINED
38 #ifndef _TIME_T_DEFINED
40 #define _TIME_T_DEFINED
43 #ifndef _CLOCK_T_DEFINED
45 #define _CLOCK_T_DEFINED
52 #define NULL ((void *)0)
56 #ifndef CLOCKS_PER_SEC
57 #define CLOCKS_PER_SEC 1000
73 #endif /* _TM_DEFINED */
79 /* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
82 unsigned _getsystime(struct tm*);
83 unsigned _setsystime(struct tm*,unsigned);
84 char* _strdate(char*);
85 char* _strtime(char*);
88 char* asctime(const struct tm*);
90 char* ctime(const time_t*);
91 double difftime(time_t,time_t);
92 struct tm* gmtime(const time_t*);
93 struct tm* localtime(const time_t*);
94 time_t mktime(struct tm*);
95 size_t strftime(char*,size_t,const char*,const struct tm*);
98 #ifndef _WTIME_DEFINED
99 #define _WTIME_DEFINED
100 wchar_t* _wasctime(const struct tm*);
101 size_t wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
102 wchar_t*_wctime(const time_t*);
103 wchar_t*_wstrdate(wchar_t*);
104 wchar_t*_wstrtime(wchar_t*);
105 #endif /* _WTIME_DEFINED */
111 #endif /* __WINE_TIME_H */