diff options
Diffstat (limited to 'includes/common.h')
-rw-r--r-- | includes/common.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/includes/common.h b/includes/common.h index 6a0b12c..760be22 100644 --- a/includes/common.h +++ b/includes/common.h @@ -32,6 +32,18 @@ // ---------- // MacTypes.h +#ifdef __MWERKS__ +typedef unsigned char UInt8; +typedef signed char SInt8; +typedef unsigned short UInt16; +typedef signed short SInt16; +typedef unsigned long UInt32; +typedef signed long SInt32; +typedef unsigned long long UInt64; +typedef signed long long SInt64; + +typedef long Size; +#else typedef uint8_t UInt8; typedef int8_t SInt8; typedef uint16_t UInt16; @@ -41,9 +53,11 @@ typedef int32_t SInt32; typedef uint64_t UInt64; typedef int64_t SInt64; +typedef int32_t Size; +#endif + typedef char *Ptr; typedef Ptr *Handle; -typedef int32_t Size; typedef SInt16 OSErr; typedef SInt32 OSStatus; @@ -73,6 +87,7 @@ enum { nilHandleErr = -109, // pointer was nil memLockedErr = -117, dirNFErr = -120, + userCanceledErr = -128, inputOutOfBounds = -190, resNotFound = -192, // resource not found resFNotFound = -193, // resource file not found |