diff --git a/mozilla/js2/src/systemtypes.h b/mozilla/js2/src/systemtypes.h index ae33b7a54b3..9463006a88b 100644 --- a/mozilla/js2/src/systemtypes.h +++ b/mozilla/js2/src/systemtypes.h @@ -49,19 +49,18 @@ typedef signed char int8; typedef unsigned char uint8; typedef short int16; typedef unsigned short uint16; -#if !defined(XP_MAC) && !defined(_WIN32) - typedef int int32; - typedef unsigned int uint32; -#else +#ifdef _WIN32 typedef long int32; typedef unsigned long uint32; -#endif -#ifdef _WIN32 typedef __int64 int64; typedef unsigned __int64 uint64; #else + typedef int int32; + typedef unsigned int uint32; typedef long long int64; typedef unsigned long long uint64; + using std::size_t; + using std::ptrdiff_t; #endif // Define this if the machine natively supports 64-bit integers @@ -81,11 +80,7 @@ typedef float float32; typedef uint16 uchar16; #else typedef wchar_t char16; - #ifndef _WIN32 // Microsoft VC6 bug: wchar_t should be a built-in type, not a typedef - typedef wchar_t uchar16; - #else - typedef wchar_t uchar16; - #endif + typedef wchar_t uchar16; #endif #ifdef _WIN32