From f1b363e27da8c1dfd435cee2d5058714a4264559 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Jan 2009 15:07:53 +0100 Subject: [PATCH] msvcrt: Fix the time_t definition for the msvcrt build. --- dlls/msvcrt/msvcrt.h | 4 +++- dlls/msvcrt/tests/headers.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h index 28d8f5491d0..8ed8fd953ce 100644 --- a/dlls/msvcrt/msvcrt.h +++ b/dlls/msvcrt/msvcrt.h @@ -50,15 +50,17 @@ typedef unsigned long MSVCRT__fsize_t; typedef unsigned __int64 MSVCRT_size_t; typedef __int64 MSVCRT_intptr_t; typedef unsigned __int64 MSVCRT_uintptr_t; +typedef __int64 MSVCRT_time_t; #else typedef unsigned long MSVCRT_size_t; typedef long MSVCRT_intptr_t; typedef unsigned long MSVCRT_uintptr_t; +typedef long MSVCRT_time_t; #endif typedef unsigned int MSVCRT__dev_t; typedef int MSVCRT__off_t; typedef long MSVCRT_clock_t; -typedef long MSVCRT_time_t; +typedef long MSVCRT___time32_t; typedef __int64 MSVCRT___time64_t; typedef __int64 MSVCRT_fpos_t; diff --git a/dlls/msvcrt/tests/headers.c b/dlls/msvcrt/tests/headers.c index c9e9570c254..7133e1ec05d 100644 --- a/dlls/msvcrt/tests/headers.c +++ b/dlls/msvcrt/tests/headers.c @@ -88,6 +88,7 @@ static void test_types(void) CHECK_TYPE(_off_t); CHECK_TYPE(clock_t); CHECK_TYPE(time_t); + CHECK_TYPE(__time32_t); CHECK_TYPE(__time64_t); CHECK_TYPE(fpos_t); CHECK_SIZE(FILE);