1 /* Fix issues related to MinGW 4.x handling of time data types. */
6 /* The @#$%^&! MinGW developers stopped updating the values of
7 __MINGW32_VERSION, __MINGW32_MAJOR_VERSION, and
8 __MINGW32_MINOR_VERSION values in v4.x of the runtime, to
9 "discourage its uses". So the values of those macros can no longer
10 be trusted, and we need the workaround below, to have a single set
11 of macros we can trust. (The .17 minor version is arbitrary.) */
15 /* MinGW64 doesn't have this problem, and does not define
17 #ifndef __MINGW64_VERSION_MAJOR
18 # ifndef __MINGW_VERSION
19 # define __MINGW_VERSION 3.17
20 # undef __MINGW_MAJOR_VERSION
21 # define __MINGW_MAJOR_VERSION 3
22 # undef __MINGW_MINOR_VERSION
23 # define __MINGW_MINOR_VERSION 17
24 # undef __MINGW_PATCHLEVEL
25 # define __MINGW_PATCHLEVEL 0
28 #if __MINGW_MAJOR_VERSION >= 4
29 # define _USE_32BIT_TIME_T