widl: Added importlib reading implementation.
[wine/dcerpc.git] / include / msvcrt / time.h
blob409f2f2ec71768ef0be955a3a9e1e039bde68026
1 /*
2 * Time definitions
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
20 #ifndef __WINE_TIME_H
21 #define __WINE_TIME_H
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
24 #endif
26 #ifndef _WCHAR_T_DEFINED
27 #define _WCHAR_T_DEFINED
28 #ifndef __cplusplus
29 typedef unsigned short wchar_t;
30 #endif
31 #endif
33 #ifndef _SIZE_T_DEFINED
34 typedef unsigned int size_t;
35 #define _SIZE_T_DEFINED
36 #endif
38 #ifndef _TIME_T_DEFINED
39 typedef long time_t;
40 #define _TIME_T_DEFINED
41 #endif
43 #ifndef _CLOCK_T_DEFINED
44 typedef long clock_t;
45 #define _CLOCK_T_DEFINED
46 #endif
48 #ifndef NULL
49 #ifdef __cplusplus
50 #define NULL 0
51 #else
52 #define NULL ((void *)0)
53 #endif
54 #endif
56 #ifndef CLOCKS_PER_SEC
57 #define CLOCKS_PER_SEC 1000
58 #endif
60 #ifndef _TM_DEFINED
61 #define _TM_DEFINED
62 struct tm {
63 int tm_sec;
64 int tm_min;
65 int tm_hour;
66 int tm_mday;
67 int tm_mon;
68 int tm_year;
69 int tm_wday;
70 int tm_yday;
71 int tm_isdst;
73 #endif /* _TM_DEFINED */
75 #ifdef __cplusplus
76 extern "C" {
77 #endif
79 #define _daylight (*__p__daylight())
80 #define _dstbias (*__p__dstbias())
81 #define _timezone (*__p__timezone())
82 #define _tzname (__p__tzname())
84 int *__p__daylight(void);
85 long *__p__dstbias(void);
86 long *__p__timezone(void);
87 char **__p__tzname(void);
89 unsigned _getsystime(struct tm*);
90 unsigned _setsystime(struct tm*,unsigned);
91 char* _strdate(char*);
92 char* _strtime(char*);
93 void _tzset(void);
95 char* asctime(const struct tm*);
96 clock_t clock(void);
97 char* ctime(const time_t*);
98 double difftime(time_t,time_t);
99 struct tm* gmtime(const time_t*);
100 struct tm* localtime(const time_t*);
101 time_t mktime(struct tm*);
102 size_t strftime(char*,size_t,const char*,const struct tm*);
103 time_t time(time_t*);
105 #ifndef _WTIME_DEFINED
106 #define _WTIME_DEFINED
107 wchar_t* _wasctime(const struct tm*);
108 size_t wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
109 wchar_t*_wctime(const time_t*);
110 wchar_t*_wstrdate(wchar_t*);
111 wchar_t*_wstrtime(wchar_t*);
112 #endif /* _WTIME_DEFINED */
114 #ifdef __cplusplus
116 #endif
118 #endif /* __WINE_TIME_H */