Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -1,20 +1,28 @@ | ||
| 1 | 1 | #ifndef _STDDEF_H |
| 2 | 2 | #define _STDDEF_H |
| 3 | 3 | |
| 4 | −#define NULL ((void *)0) | |
| 5 | 4 | typedef __SIZE_TYPE__ size_t; |
| 5 | +typedef __PTRDIFF_TYPE__ ssize_t; | |
| 6 | 6 | typedef __WCHAR_TYPE__ wchar_t; |
| 7 | 7 | typedef __PTRDIFF_TYPE__ ptrdiff_t; |
| 8 | −#define offsetof(type, field) ((size_t) &((type *)0)->field) | |
| 8 | +typedef __PTRDIFF_TYPE__ intptr_t; | |
| 9 | +typedef __SIZE_TYPE__ uintptr_t; | |
| 9 | 10 | |
| 10 | 11 | #ifndef __int8_t_defined |
| 11 | 12 | #define __int8_t_defined |
| 12 | −typedef char int8_t; | |
| 13 | −typedef short int int16_t; | |
| 14 | −typedef int int32_t; | |
| 15 | −typedef long long int int64_t; | |
| 13 | +typedef signed char int8_t; | |
| 14 | +typedef signed short int int16_t; | |
| 15 | +typedef signed int int32_t; | |
| 16 | +typedef signed long long int int64_t; | |
| 17 | +typedef unsigned char uint8_t; | |
| 18 | +typedef unsigned short int uint16_t; | |
| 19 | +typedef unsigned int uint32_t; | |
| 20 | +typedef unsigned long long int uint64_t; | |
| 16 | 21 | #endif |
| 17 | 22 | |
| 23 | +#define NULL ((void *)0) | |
| 24 | +#define offsetof(type, field) ((size_t)&((type *)0)->field) | |
| 25 | + | |
| 18 | 26 | void *alloca(size_t size); |
| 19 | 27 | |
| 20 | 28 | #endif |