msvcrt: Pack the structures on a 8-byte boundary like in PSDK.
[wine/wine-gecko.git] / include / msvcrt / sys / timeb.h
blob253b58135b8f2b608aa5e043f5b4b89fdb2e719e
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
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
24 #endif
26 #include <pshpack8.h>
28 #ifndef _TIME_T_DEFINED
29 typedef long time_t;
30 #define _TIME_T_DEFINED
31 #endif
33 #ifndef _TIMEB_DEFINED
34 #define _TIMEB_DEFINED
35 struct _timeb
37 time_t time;
38 unsigned short millitm;
39 short timezone;
40 short dstflag;
42 #endif /* _TIMEB_DEFINED */
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
49 void _ftime(struct _timeb*);
51 #ifdef __cplusplus
53 #endif
56 #define timeb _timeb
58 static inline void ftime(struct _timeb* ptr) { return _ftime(ptr); }
60 #include <poppack.h>
62 #endif /* __WINE_SYS_TIMEB_H */