X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=0e44f142f174e4685544f09a98ccc8f096e8e4a6;hb=031912592f3be19961f67a80ff235b5499fb6033;hp=ea837ba850f8718ed0bd57e6e1e6b32a7dc2ac0f;hpb=a2210987109ab5a6337c72b45f7e52cfc9092f8f;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index ea837ba8..0e44f142 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -1,19 +1,31 @@ /* */ -#ifndef _STDTYPES_H_ -#define _STDTYPES_H_ +#ifndef _STDINT_H_ +#define _STDINT_H_ -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; -typedef uint32_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; +#elif ARCHDIR_is_armv7 +typedef int32_t intptr_t; +typedef uint32_t uintptr_t; +#else +# error "Unknown pointer size" +#endif + +typedef uint64_t off_t; #endif