Showing the changes to win32/include (3 of 10 files). Show all
Unified · Split
| @@ -18,6 +18,8 @@ · 17 unmodified lines | |||
| 18 | #ifndef __MINGW_H | 18 | #ifndef __MINGW_H |
| 19 | #define __MINGW_H | 19 | #define __MINGW_H |
| 20 | 20 | ||
| 21 | #include <stddef.h> | ||
| 22 | |||
| 21 | #define __int64 long long | 23 | #define __int64 long long |
| 22 | #define __int32 long | 24 | #define __int32 long |
| 23 | #define __int16 short | 25 | #define __int16 short |
| @@ -6,6 +6,7 @@ typedef char *va_list; · 5 unmodified lines | |||
| 6 | /* only correct for i386 */ | 6 | /* only correct for i386 */ |
| 7 | #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3) | 7 | #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3) |
| 8 | #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3))) | 8 | #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3))) |
| 9 | #define va_copy(dest, src) (dest) = (src) | ||
| 9 | #define va_end(ap) | 10 | #define va_end(ap) |
| 10 | 11 | ||
| 11 | /* fix a buggy dependency on GCC in libio.h */ | 12 | /* fix a buggy dependency on GCC in libio.h */ |
| @@ -12,10 +12,15 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; · 11 unmodified lines | |||
| 12 | __GNUC__ ? */ | 12 | __GNUC__ ? */ |
| 13 | #if !defined(__int8_t_defined) && !defined(__dietlibc__) | 13 | #if !defined(__int8_t_defined) && !defined(__dietlibc__) |
| 14 | #define __int8_t_defined | 14 | #define __int8_t_defined |
| 15 | typedef char int8_t; | 15 | typedef char int8_t; |
| 16 | typedef short int int16_t; | 16 | typedef short int int16_t; |
| 17 | typedef int int32_t; | 17 | typedef int int32_t; |
| 18 | typedef long long int int64_t; | 18 | typedef long long int int64_t; |
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | #ifdef __i386__ | ||
| 22 | void *_alloca(size_t); | ||
| 23 | #define alloca _alloca | ||
| 24 | #endif | ||
| 25 | |||
| 21 | #endif | 26 | #endif |