[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    Win64 patch 4/5 (msvcrt)
From:       Ge van Geldorp <ge () gse ! nl>
Date:       2006-06-30 19:37:39
Message-ID: 200606301937.k5UJbdeX021215 () mailhost ! geldorp ! nl
[Download RAW message or body]

Changelog:
  Ge van Geldorp <ge@gse.nl>
  - Make sure size_t is properly defined for 64-bit

--- a/dlls/msvcrt/msvcrt.h
+++ b/dlls/msvcrt/msvcrt.h
@@ -36,11 +36,12 @@
 #ifndef __WINE_MSVCRT_H
 #define __WINE_MSVCRT_H
 
+#include "windef.h"
+
 #include <stdarg.h>
 #include <ctype.h>
 #include <string.h>
 
-#include "windef.h"
 #include "winbase.h"
 #include "winerror.h"
 #include "winnls.h"
diff --git a/include/msvcrt/string.h b/include/msvcrt/string.h
index a821aa2..498de30 100644
--- a/include/msvcrt/string.h
+++ b/include/msvcrt/string.h
@@ -19,7 +19,11 @@ #endif
 #endif
 
 #ifndef _SIZE_T_DEFINED
+#ifdef _WIN64
+typedef unsigned __int64 size_t;
+#else
 typedef unsigned int size_t;
+#endif
 #define _SIZE_T_DEFINED
 #endif
 
-- 
1.4.0



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic