This ML thread refers.
_USE_32BIT_TIME_T is not defined, the default prototype in WSL time.h declares a prototype for difftime(), as a function accepting two
__time64_t arguments, yet any call is simply directed to an external MSVCRT.DLL implementation which expects two
MSDN tells us:
difftime is an inline function that evaluates to either _difftime32 or _difftime64 depending on whether _USE_32BIT_TIME_T is defined.
However, our header implementation fails to:
Provide the appropriate inline redirects.
Recognize that simple redirects to either
_difftime32(), as suggested by MSDN is not satisfactory, since neither of these functions is exported by MSVCRT.DLL on WinXP (or earlier). Thus, the redirect would need to:
Probe the DLL, to ensure that the redirection can be satisfied, before making the call.
Fall back to calling the strictly
__time32_t implementation of
difftime(), when the redirection cannot be completed.
Log in to post a comment.