X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=adfb101e8e9180d64f66ef20712c219bfcbece06;hb=a6f11cb266052c58ae7e2d6d6e8abd34a9e93214;hp=ea837ba850f8718ed0bd57e6e1e6b32a7dc2ac0f;hpb=a2210987109ab5a6337c72b45f7e52cfc9092f8f;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index ea837ba8..adfb101e 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,6 +14,15 @@ 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; +#else typedef uint32_t intptr_t; +typedef uint32_t uintptr_t; +#endif +#if 0 +# error "Unknown pointer size" +#endif #endif