You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Win32: fixed time_t size for 32-bit builds with MSVC.
Starting with MSVC 2005, 64-bit time_t is used by default, including
32-bit builds (unless _USE_32BIT_TIME_T is explicitly defined). However,
the code assumed 32-bit time_t.
With current code, this shouldn't cause any negative effects, as various
related sizes are only used for values which are expected to fit into
32 bits. Still, using correct size is obviously preferred, and also
will work after 2038.
Fix is to explicitly check MSVC version, and assume 64-bit time_t for
recent enough versions.
0 commit comments