dolphin/types.h: Fix s32/u32 for MWCC

This commit is contained in:
Luke Street 2022-07-28 07:47:20 -04:00
parent 2dec530bb5
commit a9cf9271c4
1 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,16 @@
#include <bits/wordsize.h> #include <bits/wordsize.h>
#endif #endif
#ifdef __MWERKS__
typedef signed char s8;
typedef signed short int s16;
typedef signed long s32;
typedef signed long long int s64;
typedef unsigned char u8;
typedef unsigned short int u16;
typedef unsigned long u32;
typedef unsigned long long int u64;
#else
typedef signed char s8; typedef signed char s8;
typedef signed short int s16; typedef signed short int s16;
typedef signed int s32; typedef signed int s32;
@ -13,7 +23,6 @@ typedef signed long int s64;
#else #else
typedef signed long long int s64; typedef signed long long int s64;
#endif #endif
typedef unsigned char u8; typedef unsigned char u8;
typedef unsigned short int u16; typedef unsigned short int u16;
typedef unsigned int u32; typedef unsigned int u32;
@ -22,6 +31,7 @@ typedef unsigned long int u64;
#else #else
typedef unsigned long long int u64; typedef unsigned long long int u64;
#endif #endif
#endif
typedef volatile u8 vu8; typedef volatile u8 vu8;
typedef volatile u16 vu16; typedef volatile u16 vu16;