utilities: Use C99+ size definitions on Windows

Also remove a LONG definition for Linux - it's unused.
This commit is contained in:
Jonathan Li 2016-01-26 18:16:53 +00:00
parent 2939abd8de
commit 50c7775e47
1 changed files with 1 additions and 22 deletions

View File

@ -34,24 +34,7 @@
// Basic Atomic Types
// --------------------------------------------------------------------------------------
#include "stdint.h"
#if defined(_MSC_VER)
// In doubt, we keep this define for VS2010
typedef __int8 s8;
typedef __int16 s16;
typedef __int32 s32;
typedef __int64 s64;
typedef unsigned __int8 u8;
typedef unsigned __int16 u16;
typedef unsigned __int32 u32;
typedef unsigned __int64 u64;
#else // _MSC_VER*/
#include <stdint.h>
// Note: char does not have a default sign, unlike other types. As we actually want
// char and not signed char in pcsx2, we define s8 to char
@ -66,10 +49,6 @@ typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
#define LONG long
#endif //_MSC_VER
typedef uintptr_t uptr;
typedef intptr_t sptr;