ultratypes.h (960B)
1 #ifndef _ULTRA64_TYPES_H_ 2 #define _ULTRA64_TYPES_H_ 3 4 #if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) 5 6 #ifndef NULL 7 #define NULL (void *)0 8 #endif 9 10 #define TRUE 1 11 #define FALSE 0 12 13 typedef signed char s8; 14 typedef unsigned char u8; 15 typedef signed short int s16; 16 typedef unsigned short int u16; 17 typedef signed int s32; 18 typedef unsigned int u32; 19 typedef signed long long int s64; 20 typedef unsigned long long int u64; 21 22 typedef volatile u8 vu8; 23 typedef volatile u16 vu16; 24 typedef volatile u32 vu32; 25 typedef volatile u64 vu64; 26 typedef volatile s8 vs8; 27 typedef volatile s16 vs16; 28 typedef volatile s32 vs32; 29 typedef volatile s64 vs64; 30 31 typedef float f32; 32 typedef double f64; 33 34 #ifdef TARGET_N64 35 typedef u32 size_t; 36 typedef s32 ssize_t; 37 typedef u32 uintptr_t; 38 typedef s32 intptr_t; 39 typedef s32 ptrdiff_t; 40 #else 41 #include <stddef.h> 42 #include <stdint.h> 43 typedef ptrdiff_t ssize_t; 44 #endif 45 46 #endif 47 48 #endif