diff --git a/Source/Common/stdtypes.h b/Source/Common/stdtypes.h new file mode 100644 index 000000000..5e8ba5e24 --- /dev/null +++ b/Source/Common/stdtypes.h @@ -0,0 +1,19 @@ +#pragma once + +/* + * Some versions of Microsoft Visual C/++ compilers before Visual Studio 2010 + * have removed in favor of these nonstandard built-in types: + */ +#if defined(_MSC_VER) && (_MSC_VER < 1600) +typedef signed __int8 int8_t; +typedef signed __int16 int16_t; +typedef signed __int32 int32_t; +typedef signed __int64 int64_t; + +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; +typedef unsigned __int64 uint64_t; +#else +#include +#endif diff --git a/Source/Project64/N64 System/Types.h b/Source/Project64/N64 System/Types.h index 8c401cab9..4627d6b2f 100644 --- a/Source/Project64/N64 System/Types.h +++ b/Source/Project64/N64 System/Types.h @@ -10,23 +10,7 @@ ****************************************************************************/ #pragma once -/* - * Some versions of Microsoft Visual C/++ compilers before Visual Studio 2010 - * have removed in favor of these nonstandard built-in types: - */ -#if defined(_MSC_VER) && (_MSC_VER < 1600) -typedef signed __int8 int8_t; -typedef signed __int16 int16_t; -typedef signed __int32 int32_t; -typedef signed __int64 int64_t; - -typedef unsigned __int8 uint8_t; -typedef unsigned __int16 uint16_t; -typedef unsigned __int32 uint32_t; -typedef unsigned __int64 uint64_t; -#else -#include -#endif +#include /* * To do: Use fixed-size types for MIPS union members, not WINAPI types.