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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

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

Greg Hudson via RT

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) &&
#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

Jeffrey Altman
krb5-bugs mailing list
[hidden email]