History

Import more changesets from Rob Landley's fork (part 2)

grischka committed 18 years ago

Commit d778bde1 parent 54bf8c010 files · +157 −79Browse files

Showing the changes to win32/include (3 of 10 files). Show all

Unified · Split

3 files
  1. win32/include/_mingw.h +2 −0
  2. win32/include/stdarg.h +1 −0
  3. win32/include/stddef.h +8 −3
win32/include/_mingw.h+2−0
@@ -18,6 +18,8 @@ · 17 unmodified lines
1818 #ifndef __MINGW_H
1919 #define __MINGW_H
2020
21+#include <stddef.h>
22+
2123 #define __int64 long long
2224 #define __int32 long
2325 #define __int16 short
win32/include/stdarg.h+1−0
@@ -6,6 +6,7 @@ typedef char *va_list; · 5 unmodified lines
66 /* only correct for i386 */
77 #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
88 #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
9+#define va_copy(dest, src) (dest) = (src)
910 #define va_end(ap)
1011
1112 /* fix a buggy dependency on GCC in libio.h */
win32/include/stddef.h+8−3
@@ -12,10 +12,15 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; · 11 unmodified lines
1212 __GNUC__ ? */
1313 #if !defined(__int8_t_defined) && !defined(__dietlibc__)
1414 #define __int8_t_defined
15−typedef char int8_t;
16−typedef short int int16_t;
17−typedef int int32_t;
15+typedef char int8_t;
16+typedef short int int16_t;
17+typedef int int32_t;
1818 typedef long long int int64_t;
1919 #endif
2020
21+#ifdef __i386__
22+void *_alloca(size_t);
23+#define alloca _alloca
24+#endif
25+
2126 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t