X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftypes.h;h=0fc13b5e9f768c68af4f83ca369a01ed3f60e50d;hb=3ef71393f70213eb53db552605ae3c93f1303ee9;hp=7f589aa434847d901d05acb8407f463a97ce1cfa;hpb=6d13a5166688e470590692eb91c3915ab332fe36;p=ttedit diff --git a/src/types.h b/src/types.h index 7f589aa..0fc13b5 100755 --- a/src/types.h +++ b/src/types.h @@ -1,33 +1,30 @@ -// -// Basic types for platform independent code -// - -#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 signed char SBYTE; -//typedef signed short int SWORD; -//typedef signed long int SDWORD; - -/*#ifndef _WINDOWS_ -#define NULL 0 -// This is for non-compliant compilers that don't follow proper scoping rules (and suck). ;-) -#define for if(false);else for -#endif*/ -#ifndef NULL -#define NULL 0 -#endif - -#endif // __TYPES_H__ +// +// Basic types for platform independent code +// + +#ifndef __TYPES_H__ +#define __TYPES_H__ + +// This should be portable, since it's part of the C99 standard...! + +#include + +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; + +/*#ifndef _WINDOWS_ +#define NULL 0 +// This is for non-compliant compilers that don't follow proper scoping rules (and suck). ;-) +#define for if(false);else for +#endif*/ +#ifndef NULL +#define NULL 0 +#endif + +#endif // __TYPES_H__