From: John Hodge Date: Tue, 14 Feb 2012 07:34:33 +0000 (+0800) Subject: Usermode/include - Slight fixes X-Git-Tag: rel0.15~773 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8ed1749bb8e8822befc3da73227b4199644c8f30;p=tpg%2Facess2.git Usermode/include - Slight fixes --- diff --git a/Usermode/include/acess/intdefs.h b/Usermode/include/acess/intdefs.h index c33e7d54..46a06c40 100644 --- a/Usermode/include/acess/intdefs.h +++ b/Usermode/include/acess/intdefs.h @@ -16,13 +16,13 @@ typedef signed short __int16_t; typedef signed int __int32_t; typedef signed long long __int64_t; -#if ARCHDIR_is_x86 +#if defined(ARCHDIR_is_x86) typedef __int32_t __intptr_t; typedef __uint32_t __uintptr_t; -#elif ARCHDIR_is_x86_64 +#elif defined(ARCHDIR_is_x86_64) typedef __int64_t __intptr_t; typedef __uint64_t __uintptr_t; -#elif ARCHDIR_is_armv7 +#elif defined(ARCHDIR_is_armv7) typedef __int32_t __intptr_t; typedef __uint32_t __uintptr_t; #else diff --git a/Usermode/include/stddef.h b/Usermode/include/stddef.h index efbabb3a..1995839c 100644 --- a/Usermode/include/stddef.h +++ b/Usermode/include/stddef.h @@ -1,10 +1,12 @@ #ifndef _STDDEF_H_ #define _STDDEF_H_ +#include "acess/intdefs.h" + #ifndef NULL # define NULL ((void*)0) #endif -typedef unsigned int size_t; +typedef __intptr_t size_t; #endif