1 --- src/System.h.orig 2004-05-13 22:02:43.000000000 +0800 2 +++ src/System.h 2013-07-30 00:13:30.000000000 +0800 3 @@ -20,30 +20,31 @@ 4 #ifndef VBA_SYSTEM_H 5 #define VBA_SYSTEM_H 6 7 +#include <inttypes.h> 8 #include "unzip.h" 9 10 #ifndef NULL 11 #define NULL 0 12 #endif 13 14 -typedef unsigned char u8; 15 -typedef unsigned short u16; 16 -typedef unsigned int u32; 17 +typedef uint8_t u8; 18 +typedef uint16_t u16; 19 +typedef uint32_t u32; 20 21 #ifdef _MSC_VER 22 typedef unsigned __int64 u64; 23 #else 24 -typedef unsigned long long u64; 25 +typedef uint64_t u64; 26 #endif 27 28 -typedef signed char s8; 29 -typedef signed short s16; 30 -typedef signed int s32; 31 +typedef int8_t s8; 32 +typedef int16_t s16; 33 +typedef int32_t s32; 34 35 #ifdef _MSC_VER 36 typedef signed __int64 s64; 37 #else 38 -typedef signed long long s64; 39 +typedef int64_t s64; 40 #endif 41 42 struct EmulatedSystem { 43