When using DIB_PAL_COLORS select the current palette into the memory
[wine/multimedia.git] / include / msvcrt / time.h
blobe1f0c1947aefe2a195b94c8d636f18db28763789
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 MSVCRT
27 # ifdef USE_MSVCRT_PREFIX
28 # define MSVCRT(x) MSVCRT_##x
29 # else
30 # define MSVCRT(x) x
31 # endif
32 #endif
34 #ifndef MSVCRT_WCHAR_T_DEFINED
35 #define MSVCRT_WCHAR_T_DEFINED
36 #ifndef __cplusplus
37 typedef unsigned short MSVCRT(wchar_t);
38 #endif
39 #endif
41 #ifndef MSVCRT_SIZE_T_DEFINED
42 typedef unsigned int MSVCRT(size_t);
43 #define MSVCRT_SIZE_T_DEFINED
44 #endif
46 #ifndef MSVCRT_TIME_T_DEFINED
47 typedef long MSVCRT(time_t);
48 #define MSVCRT_TIME_T_DEFINED
49 #endif
51 #ifndef MSVCRT_CLOCK_T_DEFINED
52 typedef long MSVCRT(clock_t);
53 #define MSVCRT_CLOCK_T_DEFINED
54 #endif
56 #ifndef NULL
57 #ifdef __cplusplus
58 #define NULL 0
59 #else
60 #define NULL ((void *)0)
61 #endif
62 #endif
64 #ifndef CLOCKS_PER_SEC
65 #define CLOCKS_PER_SEC 1000
66 #endif
68 #ifndef MSVCRT_TM_DEFINED
69 #define MSVCRT_TM_DEFINED
70 struct MSVCRT(tm) {
71 int tm_sec;
72 int tm_min;
73 int tm_hour;
74 int tm_mday;
75 int tm_mon;
76 int tm_year;
77 int tm_wday;
78 int tm_yday;
79 int tm_isdst;
81 #endif /* MSVCRT_TM_DEFINED */
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
87 /* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
90 unsigned _getsystime(struct MSVCRT(tm)*);
91 unsigned _setsystime(struct MSVCRT(tm)*,unsigned);
92 char* _strdate(char*);
93 char* _strtime(char*);
94 void _tzset(void);
96 char* MSVCRT(asctime)(const struct MSVCRT(tm)*);
97 MSVCRT(clock_t) MSVCRT(clock)(void);
98 char* MSVCRT(ctime)(const MSVCRT(time_t)*);
99 double MSVCRT(difftime)(MSVCRT(time_t),MSVCRT(time_t));
100 struct MSVCRT(tm)* MSVCRT(gmtime)(const MSVCRT(time_t)*);
101 struct MSVCRT(tm)* MSVCRT(localtime)(const MSVCRT(time_t)*);
102 MSVCRT(time_t) MSVCRT(mktime)(struct MSVCRT(tm)*);
103 size_t MSVCRT(strftime)(char*,size_t,const char*,const struct MSVCRT(tm)*);
104 MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*);
106 #ifndef MSVCRT_WTIME_DEFINED
107 #define MSVCRT_WTIME_DEFINED
108 MSVCRT(wchar_t)* MSVCRT(_wasctime)(const struct MSVCRT(tm)*);
109 MSVCRT(size_t) MSVCRT(wcsftime)(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*);
110 MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
111 MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
112 MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
113 #endif /* MSVCRT_WTIME_DEFINED */
115 #ifdef __cplusplus
117 #endif
119 #endif /* __WINE_TIME_H */