BUG: TYPES.H time_t Definition Is IncorrectLast reviewed: July 17, 1997Article ID: Q102215 |
1.00 1.50 1.51
WINDOWS
kbref kbbuglist
The information in this article applies to:
SYMPTOMSThe Microsoft Visual C++ run-time library time functions, such as mktime(), use the time_t data type which is defined in TIME.H as a long. However, the SYS\TYPES.H file incorrectly defines the time_t data type as an unsigned long.
RESOLUTIONPerform one of the following two steps to work around this problem:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThis information does not apply to Microsoft C/C++ version 7.0 because the TIME.H and SYS\TYPES.H file each define time_t as an unsigned long. Nor does it apply to Microsoft C versions 6.0x or Microsoft Visual C++ 32-bit Edition because the TIME.H and SYS\TYPES.H file each define time_t as a long. For additional information about the differences between the time_t data type in C versions 6.0x and the time_t data type in C/C++ version 7.0, please query in the Microsoft Knowledge Base on the following words:
time function changes gmt |
Additional reference words: 6.00 7.00 1.00 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |