Define pointer integer types
This commit is contained in:
		
							parent
							
								
									d11120956e
								
							
						
					
					
						commit
						e58c29e15d
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue