X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftypes.h;h=faa868486f0a15b3dc4f451d8522b0b6e8637796;hb=00f99074bf49f4d52d17a534dd3d4e451f4bbc59;hp=a1b9d09228b38a1d7f7a411a33a5c7fd89fbbd9b;hpb=2879315d07ce59a7996bc8a137c3b66ae018013a;p=stargem2 diff --git a/src/types.h b/src/types.h index a1b9d09..faa8684 100755 --- a/src/types.h +++ b/src/types.h @@ -4,30 +4,22 @@ // // Why these aren't a part of the C/C++ standard is beyond me. It seems to me that // basic types where you know the width should be a no-brainer. +// I guess enough people were pissed off by it, so they included it finally. We +// still alias them because we don't like typing _t after our type identifiers. ;-) // #ifndef __TYPES_H__ #define __TYPES_H__ -// This is only good on certain intel 32-bit platforms... -// You may need to tweak to suit your specific platform. +#include -typedef unsigned char uint8; -typedef signed char int8; -typedef unsigned short uint16; -typedef signed short int16; -typedef unsigned uint32; -typedef signed int32; -typedef unsigned long long uint64; -typedef signed long long int64; - -typedef uint8 UINT8; -typedef int8 INT8; -typedef uint16 UINT16; -typedef int16 INT16; -typedef uint32 UINT32; -typedef int32 INT32; -typedef uint64 UINT64; -typedef int64 INT64; +typedef uint8_t uint8; +typedef int8_t int8; +typedef uint16_t uint16; +typedef int16_t int16; +typedef uint32_t uint32; +typedef int32_t int32; +typedef uint64_t uint64; +typedef int64_t int64; #endif // __TYPES_H__