typedef unsigned char sgBool; typedef char sgChar; #ifdef __cplusplus typedef wchar_t sgWChar; #else typedef unsigned short sgWChar; #endif typedef unsigned char sgByte; typedef signed short sgShort; typedef unsigned short sgUShort; typedef signed int sgInt; typedef unsigned int sgUInt; typedef signed long sgLong; typedef unsigned long sgULong; typedef signed long long sgLongLong; typedef unsigned long long sgULongLong; typedef float sgSingle; typedef double sgDouble; typedef void sgVoid; #ifdef _MSC_VER typedef unsigned __int8 sgUInt8; typedef unsigned __int16 sgUInt16; typedef unsigned __int32 sgUInt32; typedef unsigned __int64 sgUInt64; #else # include typedef uint8_t sgUInt8; typedef uint16_t sgUInt16; typedef uint32_t sgUInt32; typedef uint64_t sgUInt64; #endif