X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fstdint.h;h=477f8ebd97b730ff32cf1821c2bf60d80cc2c1d2;hb=e7dd0e094f0c23bb20ddb0025f41d1c0c28f5ab2;hp=a7857ef32ef134842662635990f8d7114a8373ac;hpb=3764c294f21229bdf700f436fa4884f5e76e0d3a;p=tpg%2Facess2.git diff --git a/Usermode/include/stdint.h b/Usermode/include/stdint.h index a7857ef3..477f8ebd 100644 --- a/Usermode/include/stdint.h +++ b/Usermode/include/stdint.h @@ -1,28 +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; -#if __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; +#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; -#endif -#if 0 # error "Unknown pointer size" #endif +//typedef uint64_t off_t; + #endif