X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=include%2Fc%2Flowlevel%2Farch-x86%2Ftypes.h;fp=include%2Fc%2Flowlevel%2Farch-x86%2Ftypes.h;h=2aba0b4ae7645e7ebc721905b21c7eb0d812e2c6;hp=db959fa582e45e2b6907f77740a6bb4db6bee3e9;hb=635cfedb4bbe270f114f7a4e5ab58b7d8e054f7d;hpb=15d9baeca05f30f8564785c255fed765ede457ff diff --git a/include/c/lowlevel/arch-x86/types.h b/include/c/lowlevel/arch-x86/types.h index db959fa..2aba0b4 100644 --- a/include/c/lowlevel/arch-x86/types.h +++ b/include/c/lowlevel/arch-x86/types.h @@ -3,6 +3,8 @@ #ifndef _LL_ARCH_TYPES_H #define _LL_ARCH_TYPES_H +#include + typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; @@ -12,11 +14,32 @@ typedef short int16_t; typedef int int32_t; typedef long long int64_t; +#if 0 +#ifndef _SIZE_T +#define _SIZE_T typedef unsigned long size_t; +#endif +#endif + +#ifndef _SSIZE_T +#define _SSIZE_T typedef long ssize_t; +#endif + +#ifndef _INTPTR_T +#define _INTPTR_T typedef long intptr_t; +#endif + +#ifndef _UINTPTR_T +#define _UINTPTR_T typedef unsigned long uintptr_t; +#endif + +#ifndef _PTRDIFF_T +#define _PTRDIFF_T typedef long ptrdiff_t; +#endif #define _LL_LONG_BYTES 4 #define _LL_LONG_LOGBYTES 2