Win64 patch 4/5 (msvcrt)
Ge van Geldorp
ge at gse.nl
Fri Jun 30 14:37:39 CDT 2006
Changelog:
Ge van Geldorp <ge at 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
More information about the wine-patches
mailing list