From fcd2ff970365ab77d5252c0b15bdccf594125252 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 4 Jan 2009 14:10:43 +0100 Subject: [PATCH] include: Fix the msvcrt time_t definition on 64-bit. --- include/msvcrt/crtdefs.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/msvcrt/crtdefs.h b/include/msvcrt/crtdefs.h index 7234c1d9b6d..fce448e94c0 100644 --- a/include/msvcrt/crtdefs.h +++ b/include/msvcrt/crtdefs.h @@ -104,11 +104,6 @@ typedef unsigned int size_t; #define _SIZE_T_DEFINED #endif -#ifndef _TIME_T_DEFINED -typedef long time_t; -#define _TIME_T_DEFINED -#endif - #ifndef _TIME32_T_DEFINED typedef long __time32_t; #define _TIME32_T_DEFINED @@ -119,6 +114,15 @@ typedef __int64 __time64_t; #define _TIME64_T_DEFINED #endif +#ifndef _TIME_T_DEFINED +#ifdef _WIN64 +typedef __time64_t time_t; +#else +typedef __time32_t time_t; +#endif +#define _TIME_T_DEFINED +#endif + #ifndef _WCHAR_T_DEFINED #ifndef __cplusplus typedef unsigned short wchar_t;