[krbdev.mit.edu #2883] 64-bit time_t issues

Jeffrey Altman via RT rt-comment at krbdev.mit.edu
Thu Nov 10 17:41:33 EST 2005


Ken:

This is an improved test for the definition of 32-bit time_t

/* To ensure backward compatibility of the ABI use 32-bit time_t on 
 * 32-bit Windows. 
 */
#if _INTEGRAL_MAX_BITS >= 64 && _MSC_VER >= 1400 && !defined(_WIN64) &&
!defined(_USE_32BIT_TIME_T)
#if defined(_TIME_T_DEFINED) || defined(_INC_IO) || defined(_INC_TIME)
|| defined(_INC_WCHAR)
#error time_t has been defined as a 64-bit integer which is incompatible
with Kerberos on this platform.
#endif /* _TIME_T_DEFINED */
#define _USE_32BIT_TIME_T
#endif 

Jeffrey Altman


More information about the krb5-bugs mailing list