X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=37b0c84b24a4c600f3ae02bec0f21146acc01dfd;hb=f4e2ddb14fa3a66332907bf7112e3cf78bf86947;hp=a7857ef32ef134842662635990f8d7114a8373ac;hpb=3764c294f21229bdf700f436fa4884f5e76e0d3a;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index a7857ef3..37b0c84b 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -14,15 +14,19 @@ typedef signed short int16_t; typedef signed long int32_t; typedef signed long long int64_t; -#if __LP64__ +#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