X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=d0f949ef927b7900c3c22c43fa2cf1e51c9d96ee;hb=89e41793b9d495d98633f90e6595722b8e5979d3;hp=37b0c84b24a4c600f3ae02bec0f21146acc01dfd;hpb=ac01ae9668972f7fc8223d8fd68168f27c7baec0;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index 37b0c84b..d0f949ef 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -1,32 +1,34 @@ /* */ -#ifndef _STDTYPES_H_ -#define _STDTYPES_H_ +#ifndef _STDINT_H_ +#define _STDINT_H_ + +#define INT_MIN -0x80000000 +#define INT_MAX 0x7FFFFFFF -//typedef unsigned int uint; typedef unsigned char uint8_t; typedef unsigned short uint16_t; -typedef unsigned long uint32_t; +typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef signed char int8_t; typedef signed short int16_t; -typedef signed long int32_t; +typedef signed int int32_t; typedef signed long long int64_t; -#ifdef __LP64__ -typedef uint64_t intptr_t; +#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; -typedef int64_t ptrdiff_t; +#elif ARCHDIR_is_armv7 +typedef int32_t intptr_t; +typedef uint32_t uintptr_t; #else -typedef uint32_t intptr_t; -typedef uint32_t uintptr_t; -typedef int32_t ptrdiff_t; -#endif -#if 0 # error "Unknown pointer size" #endif -typedef uint64_t off_t; +//typedef uint64_t off_t; #endif