22 lines
521 B
C
22 lines
521 B
C
|
#define __CRT__NO_INLINE
|
||
|
#include <time.h>
|
||
|
#include <memory.h>
|
||
|
|
||
|
/* FIXME: Relying on _USE_32BIT_TIME_T, which is a user-macro,
|
||
|
during CRT compilation is plainly broken. Need an appropriate
|
||
|
implementation to provide users the ability of compiling the
|
||
|
CRT only with 32-bit time_t behavior. */
|
||
|
|
||
|
#ifndef _USE_32BIT_TIME_T
|
||
|
double __cdecl difftime(time_t _Time1,time_t _Time2)
|
||
|
{
|
||
|
return _difftime64(_Time1,_Time2);
|
||
|
}
|
||
|
#else
|
||
|
double __cdecl difftime(time_t _Time1,time_t _Time2)
|
||
|
{
|
||
|
return _difftime32(_Time1,_Time2);
|
||
|
}
|
||
|
#endif
|
||
|
|