X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftypes.h;h=51bcbcd26179e8320ebf7e15cd3f51c0bee3a8a5;hb=87647f03b4d7cf53948ed8f9f25ad30da5e596bf;hp=c65b5f586fcb40ff12d0d923af0aa3bbeab49834;hpb=43a80363f784b8dc10e438024149da0d993c7eca;p=thunder diff --git a/src/types.h b/src/types.h index c65b5f5..51bcbcd 100755 --- a/src/types.h +++ b/src/types.h @@ -1,39 +1,25 @@ // // TYPES.H // +// by James L. Hammons +// (C) 2009 Underground Software +// +// Now that C/C++ has stardard sizes, this is much more precise. We still do +// this because we don't like typing _t on the back of our types. :-) +// #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. - -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; +#include -typedef uint8 BYTE; -typedef uint16 WORD; -//ugly, ugly kludge -#ifndef __SDLEMU_OPENGL_H__ -typedef uint32 DWORD; -#endif -typedef int8 SBYTE; -typedef int16 SWORD; -typedef int32 SDWORD; +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__