Author: cfinck Date: Tue Sep 4 18:12:27 2007 New Revision: 28844
URL: http://svn.reactos.org/svn/reactos?rev=28844&view=rev Log: Correctly define LONG_PTR, ULONG_PTR and SIZE_T in "typedefs_host.h". This should silence many warnings and might fix the Live-CD build problems of our 64-bit Buildslave.
Modified: trunk/reactos/include/reactos/typedefs_host.h trunk/reactos/tools/mkhive/reginf.c
Modified: trunk/reactos/include/reactos/typedefs_host.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/typedefs_ho... ============================================================================== --- trunk/reactos/include/reactos/typedefs_host.h (original) +++ trunk/reactos/include/reactos/typedefs_host.h Tue Sep 4 18:12:27 2007 @@ -52,7 +52,6 @@
typedef void VOID, *PVOID, *HANDLE; typedef HANDLE HKEY, *PHKEY; -typedef long unsigned int SIZE_T, *PSIZE_T; typedef unsigned char UCHAR, *PUCHAR, BYTE, *LPBYTE; typedef char CHAR, *PCHAR, *PSTR; typedef const char CCHAR; @@ -65,8 +64,9 @@ typedef unsigned long long ULONGLONG; typedef UCHAR BOOLEAN, *PBOOLEAN; typedef int BOOL; -typedef int W64 LONG_PTR, *PLONG_PTR; -typedef unsigned int W64 ULONG_PTR, *PULONG_PTR; +typedef long int W64 LONG_PTR, *PLONG_PTR; +typedef long unsigned int W64 ULONG_PTR, *PULONG_PTR; +typedef ULONG_PTR SIZE_T, *PSIZE_T; typedef wchar_t WCHAR, *PWCHAR, *PWSTR, *LPWSTR; typedef const wchar_t *PCWSTR, *LPCWSTR; typedef int NTSTATUS;
Modified: trunk/reactos/tools/mkhive/reginf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/reginf.c?rev=2... ============================================================================== --- trunk/reactos/tools/mkhive/reginf.c (original) +++ trunk/reactos/tools/mkhive/reginf.c Tue Sep 4 18:12:27 2007 @@ -181,7 +181,7 @@ { CHAR EmptyStr = (CHAR)0; ULONG Type; - SIZE_T Size; + ULONG Size; LONG Error;
if (Flags & FLG_ADDREG_DELVAL) /* deletion */