2019-08-25 04:46:40 +00:00
|
|
|
#ifndef _ULTRA64_TYPES_H_
|
|
|
|
#define _ULTRA64_TYPES_H_
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL (void *)0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define TRUE 1
|
|
|
|
#define FALSE 0
|
|
|
|
|
|
|
|
typedef signed char s8;
|
|
|
|
typedef unsigned char u8;
|
|
|
|
typedef signed short int s16;
|
|
|
|
typedef unsigned short int u16;
|
|
|
|
typedef signed int s32;
|
|
|
|
typedef unsigned int u32;
|
|
|
|
typedef signed long long int s64;
|
|
|
|
typedef unsigned long long int u64;
|
|
|
|
|
|
|
|
typedef volatile u8 vu8;
|
|
|
|
typedef volatile u16 vu16;
|
|
|
|
typedef volatile u32 vu32;
|
|
|
|
typedef volatile u64 vu64;
|
|
|
|
typedef volatile s8 vs8;
|
|
|
|
typedef volatile s16 vs16;
|
|
|
|
typedef volatile s32 vs32;
|
|
|
|
typedef volatile s64 vs64;
|
|
|
|
|
|
|
|
typedef float f32;
|
|
|
|
typedef double f64;
|
|
|
|
|
2019-12-02 02:52:53 +00:00
|
|
|
#include <stddef.h>
|
2020-05-07 18:21:22 +00:00
|
|
|
#include <stdint.h>
|
2020-05-20 14:50:05 +00:00
|
|
|
#include <sys/types.h>
|
2020-05-20 14:56:35 +00:00
|
|
|
|
2020-05-14 16:26:56 +00:00
|
|
|
#if defined(__MINGW32__)
|
|
|
|
#include <_mingw.h>
|
|
|
|
#if !defined(__MINGW64_VERSION_MAJOR)
|
2020-05-14 15:47:00 +00:00
|
|
|
typedef long ssize_t;
|
|
|
|
#else
|
2020-05-07 18:21:22 +00:00
|
|
|
typedef ptrdiff_t ssize_t;
|
2019-10-05 19:08:05 +00:00
|
|
|
#endif
|
2020-05-14 15:47:00 +00:00
|
|
|
#endif
|
2020-05-20 14:56:35 +00:00
|
|
|
|
|
|
|
#endif // _ULTRA64_TYPES_H_
|