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