Define pointer integer types

This commit is contained in:
Eryn Wells 2016-04-17 16:49:24 -04:00
parent d11120956e
commit e58c29e15d

View file

@ -13,6 +13,8 @@
extern "C" {
#endif
#include <stdint.h>
typedef __UINT8_TYPE__ u8;
typedef __INT8_TYPE__ i8;
typedef __UINT16_TYPE__ u16;
@ -21,9 +23,16 @@ typedef __UINT32_TYPE__ u32;
typedef __INT32_TYPE__ i32;
typedef __UINT64_TYPE__ u64;
typedef __INT64_TYPE__ i64;
typedef __SIZE_TYPE__ usize;
#if __WORDSIZE == 64
typedef i64 iptr;
typedef u64 uptr;
#else
typedef i32 iptr;
typedef u32 uptr;
#endif
#ifdef __cplusplus
}
#endif