Usermode/include - Slight fixes
authorJohn Hodge <[email protected]>
Tue, 14 Feb 2012 07:34:33 +0000 (15:34 +0800)
committerJohn Hodge <[email protected]>
Tue, 14 Feb 2012 07:34:33 +0000 (15:34 +0800)
Usermode/include/acess/intdefs.h
Usermode/include/stddef.h

index c33e7d5..46a06c4 100644 (file)
@@ -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
index efbabb3..1995839 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au