ReactOS 0.4.15-dev-8116-gf69e256
bitsfixup.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: LGPL, See LGPL.txt in the top level directory
3 * PROJECT: ReactOS CRT library
4 * FILE: lib/sdk/crt/time/bitsfixup.h
5 * PURPOSE: definitions for different time_t versions
6 * PROGRAMERS: Timo Kreuzer
7 */
8
9#if defined(_USE_EXPLICIT_32BIT_TIME) || defined(_USE_EXPLICIT_64BIT_TIME)
10#undef _timeb
11#undef _ftime
12#undef _tctime
13#undef _tctime_s
14#undef _tutime
15#else
16#define _time time
17#endif
18
19#undef _ftime_s
20
21#ifdef _USE_EXPLICIT_32BIT_TIME
22#define time_t __time32_t
23#define _timeb __timeb32
24#define _utimbuf __utimbuf32
25
26#define difftime _difftime32
27#define localtime _localtime32
28#define localtime_s _localtime32_s
29#define _time _time32
30
31#define _ftime _ftime32
32#define _ftime_s _ftime32_s
33#define _futime _futime32
34#define _tctime _tctime32
35#define _tctime_s _tctime32_s
36#define _tutime _tutime32
37#define gmtime _gmtime32
38
39#endif
40
41#ifdef _USE_EXPLICIT_64BIT_TIME
42#define time_t __time64_t
43#define _timeb __timeb64
44#define _utimbuf __utimbuf64
45
46#define difftime _difftime64
47#define localtime _localtime64
48#define localtime_s _localtime64_s
49#define _time _time64
50
51#define _ftime _ftime64
52#define _ftime_s _ftime64_s
53#define _futime _futime64
54#define _tctime _tctime64
55#define _tctime_s _tctime64_s
56#define _tutime _tutime64
57#define gmtime _gmtime64
58
59#endif