X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=37b0c84b24a4c600f3ae02bec0f21146acc01dfd;hb=d7c3119cb69fab67f57d92f7055d0309f07218de;hp=3ad94bda4d1442a021e3795a7e7a86d98466ab23;hpb=17e16b3110b4c5124b0707435e0427993d696545;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index 3ad94bda..37b0c84b 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -3,7 +3,7 @@ #ifndef _STDTYPES_H_ #define _STDTYPES_H_ -typedef unsigned int uint; +//typedef unsigned int uint; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; @@ -14,4 +14,19 @@ typedef signed short int16_t; typedef signed long int32_t; typedef signed long long int64_t; +#ifdef __LP64__ +typedef uint64_t intptr_t; +typedef uint64_t uintptr_t; +typedef int64_t ptrdiff_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; + #endif