X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=5df57eaee196853f3c3cab6a9119163177d3c6c3;hb=f12d3444d2efeae97f8a4fc7ecf65b23087a653a;hp=0e44f142f174e4685544f09a98ccc8f096e8e4a6;hpb=83322f5718ddc6e2e67b6c32d2a263caed780d9a;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index 0e44f142..5df57eae 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -3,29 +3,23 @@ #ifndef _STDINT_H_ #define _STDINT_H_ -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; +#include "acess/intdefs.h" -typedef signed char int8_t; -typedef signed short int16_t; -typedef signed int int32_t; -typedef signed long long int64_t; +#define INT_MIN -0x80000000 +#define INT_MAX 0x7FFFFFFF -#if ARCHDIR_is_x86 -typedef int32_t intptr_t; -typedef uint32_t uintptr_t; -#elif ARCHDIR_is_x86_64 -typedef int64_t intptr_t; -typedef uint64_t uintptr_t; -#elif ARCHDIR_is_armv7 -typedef int32_t intptr_t; -typedef uint32_t uintptr_t; -#else -# error "Unknown pointer size" -#endif +typedef __uint8_t uint8_t; +typedef __uint16_t uint16_t; +typedef __uint32_t uint32_t; +typedef __uint64_t uint64_t; +typedef __int8_t int8_t; +typedef __int16_t int16_t; +typedef __int32_t int32_t; +typedef __int64_t int64_t; + +typedef __intptr_t intptr_t; +typedef __uintptr_t uintptr_t; -typedef uint64_t off_t; +//typedef uint64_t off_t; #endif