X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=types.h;h=485b019a1ee0dea11ee5c3d53bcde037e93b5a5e;hp=05512f8f272e2bac4b638a36eec30d92a3e97181;hb=4fdfab079f3f006ae215ab453072a25588aa951d;hpb=13a7da558887ad47a9f21b4c86cc4d7fd797cf42 diff --git a/types.h b/types.h index 05512f8..485b019 100644 --- a/types.h +++ b/types.h @@ -22,9 +22,18 @@ #ifndef __FCEU_TYPES #define __FCEU_TYPES -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef unsigned long uint32; +#include +typedef int8_t int8; +typedef int16_t int16; +typedef int32_t int32; + +typedef uint8_t uint8; +typedef uint16_t uint16; +typedef uint32_t uint32; + +//typedef unsigned char uint8; +//typedef unsigned short uint16; +//typedef unsigned long uint32; #ifdef __GNUC__ typedef unsigned long long uint64; @@ -42,9 +51,9 @@ typedef unsigned long uint32; other than Windows/DOS targets? */ #endif -typedef signed char int8; -typedef signed short int16; -typedef signed long int32; +//typedef signed char int8; +//typedef signed short int16; +//typedef signed long int32; #define byte uint8 #define word uint16 @@ -53,8 +62,8 @@ typedef signed long int32; #define FASTAPASS(x) __attribute__((regparm(x))) #define FP_FASTAPASS FASTAPASS #else - #define FASTAPASS(x) - #define FP_FASTAPASS(x) + #define FASTAPASS(x) + #define FP_FASTAPASS(x) #endif #else #define FP_FASTAPASS(x)