Fixed some issues found by winapi_check.
[wine] / include / msvcrt / time.h
1 /*
2  * Time definitions
3  *
4  * Copyright 2000 Francois Gouget.
5  */
6 #ifndef __WINE_TIME_H
7 #define __WINE_TIME_H
8
9 #include "winnt.h"
10 #include "msvcrt/sys/types.h"      /* For time_t */
11
12
13 #ifndef MSVCRT_SIZE_T_DEFINED
14 typedef unsigned int MSVCRT(size_t);
15 #define MSVCRT_SIZE_T_DEFINED
16 #endif
17
18 typedef long MSVCRT(clock_t);
19
20 struct MSVCRT(tm) {
21     int tm_sec;
22     int tm_min;
23     int tm_hour;
24     int tm_mday;
25     int tm_mon;
26     int tm_year;
27     int tm_wday;
28     int tm_yday;
29     int tm_isdst;
30 };
31
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 /* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
38
39
40 unsigned    _getsystime(struct MSVCRT(tm)*);
41 unsigned    _setsystime(struct MSVCRT(tm)*,unsigned);
42 char*       _strdate(char*);
43 char*       _strtime(char*);
44 void        _tzset(void);
45
46 char*       MSVCRT(asctime)(const struct MSVCRT(tm)*);
47 MSVCRT(clock_t) MSVCRT(clock)(void);
48 char*       MSVCRT(ctime)(const MSVCRT(time_t)*);
49 double      MSVCRT(difftime)(MSVCRT(time_t),MSVCRT(time_t));
50 struct MSVCRT(tm)* MSVCRT(gmtime)(const MSVCRT(time_t)*);
51 struct MSVCRT(tm)* MSVCRT(localtime)(const MSVCRT(time_t)*);
52 MSVCRT(time_t) MSVCRT(mktime)(struct MSVCRT(tm)*);
53 size_t      MSVCRT(strftime)(char*,size_t,const char*,const struct MSVCRT(tm)*);
54 MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*);
55
56 WCHAR*      _wasctime(const struct MSVCRT(tm)*);
57 MSVCRT(size_t) wcsftime(WCHAR*,MSVCRT(size_t),const WCHAR*,const struct MSVCRT(tm)*);
58 WCHAR*      _wctime(const MSVCRT(time_t)*);
59 WCHAR*      _wstrdate(WCHAR*);
60 WCHAR*      _wstrtime(WCHAR*);
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif /* __WINE_TIME_H */