Release 1.6-rc2.
[wine/testsucceed.git] / include / msvcrt / sys / timeb.h
blob783ccbccbc1cda1c1518c420b5e2dcb7f0b63205
1 /*
2 * Path and directory 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_SYS_TIMEB_H
21 #define __WINE_SYS_TIMEB_H
23 #include <crtdefs.h>
25 #include <pshpack8.h>
27 #ifndef _TIMEB_DEFINED
28 #define _TIMEB_DEFINED
29 struct _timeb
31 time_t time;
32 unsigned short millitm;
33 short timezone;
34 short dstflag;
36 struct __timeb32
38 __time32_t time;
39 unsigned short millitm;
40 short timezone;
41 short dstflag;
43 struct __timeb64
45 __time64_t time;
46 unsigned short millitm;
47 short timezone;
48 short dstflag;
50 #endif /* _TIMEB_DEFINED */
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
57 void __cdecl _ftime32(struct __timeb32*);
58 void __cdecl _ftime64(struct __timeb64*);
60 #ifdef __cplusplus
62 #endif
64 #ifdef _USE_32BIT_TIME_T
65 static inline void __cdecl _ftime(struct _timeb *tb) { return _ftime32((struct __timeb32*)tb); }
66 #else
67 static inline void __cdecl _ftime(struct _timeb *tb) { return _ftime64((struct __timeb64*)tb); }
68 #endif
70 #define timeb _timeb
72 static inline void ftime(struct _timeb* ptr) { return _ftime(ptr); }
74 #include <poppack.h>
76 #endif /* __WINE_SYS_TIMEB_H */