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
18#ifndef __MINGW_H18#ifndef __MINGW_H
19#define __MINGW_H19#define __MINGW_H
20 20
21#include <stddef.h>
22
21#define __int64 long long23#define __int64 long long
22#define __int32 long24#define __int32 long
23#define __int16 short25#define __int16 short
win32/include/stdarg.h+1−0
@@ -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 */
win32/include/stddef.h+8−3
@@ -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_defined14#define __int8_t_defined
15typedef char int8_t;15typedef char int8_t;
16typedef short int int16_t;16typedef short int int16_t;
17typedef int int32_t;17typedef int int32_t;
18typedef long long int int64_t;18typedef long long int int64_t;
19#endif19#endif
20 20
21#ifdef __i386__
22void *_alloca(size_t);
23#define alloca _alloca
24#endif
25
21#endif26#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