X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftypes.h;fp=src%2Ftypes.h;h=e001c992e9bcf7e635ae560f5a974c502b0f15dc;hb=683f283e1328164c176618088c34408ea6c03cf7;hp=972a6af09770dee54029531d946cbcb6ae8f40e9;hpb=402ce5fd1cae18d622b04db8ba595f869b4b7464;p=virtualjaguar diff --git a/src/types.h b/src/types.h index 972a6af..e001c99 100644 --- a/src/types.h +++ b/src/types.h @@ -6,26 +6,18 @@ #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. +// This should be portable, since it's part of the C99 standard...! -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; +#include -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; // Read/write tracing enumeration