Accept headers without \r\n ending in HttpAddRequestHeaders.
[wine.git] / include / msvcrt / time.h
blob3c4a80dbc360db244e262dea99ab53f4c2f715b1
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 /* 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*);
86 void _tzset(void);
88 char* asctime(const struct tm*);
89 clock_t clock(void);
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*);
96 time_t time(time_t*);
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 */
107 #ifdef __cplusplus
109 #endif
111 #endif /* __WINE_TIME_H */