Alexandre Julliard : include: Fix the msvcrt time_t definition on 64-bit.

Alexandre Julliard julliard at winehq.org
Sun Jan 4 09:09:07 CST 2009


Module: wine
Branch: master
Commit: fcd2ff970365ab77d5252c0b15bdccf594125252
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fcd2ff970365ab77d5252c0b15bdccf594125252

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Jan  4 14:10:43 2009 +0100

include: Fix the msvcrt time_t definition on 64-bit.

---

 include/msvcrt/crtdefs.h |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/include/msvcrt/crtdefs.h b/include/msvcrt/crtdefs.h
index 7234c1d..fce448e 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;




More information about the wine-cvs mailing list