From 6a65bf6a2bcc6360a79a01b63c13dc5f9a7523da Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Fri, 30 Jun 2006 21:37:39 +0200 Subject: [PATCH] include/msvcrt: Make sure size_t is properly defined for 64-bit. --- include/msvcrt/string.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/msvcrt/string.h b/include/msvcrt/string.h index a821aa27619..cc0b25e2bba 100644 --- a/include/msvcrt/string.h +++ b/include/msvcrt/string.h @@ -18,8 +18,18 @@ typedef unsigned short wchar_t; #endif #endif +#ifndef _MSC_VER +# ifndef __int64 +# define __int64 long long +# 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