History

win32: add size_t to _mingw.h

grischka committed 16 years ago

Commit cda8c411 parent 4a01eb01 file · +9 −0Browse files

Unified · Split

win32/include/_mingw.h+9−0
@@ -52,6 +52,7 @@ · 51 unmodified lines
5252 #define _CRT_WIDE(_String) __CRT_WIDE(_String)
5353
5454 #ifdef _WIN64
55+
5556 typedef __int64 intptr_t;
5657 typedef unsigned __int64 uintptr_t;
5758 #define __stdcall
@@ -59,12 +60,15 @@ typedef unsigned __int64 uintptr_t; · 1 unmodified line
5960 #define __x86_64 1
6061 #define USE_MINGW_SETJMP_TWO_ARGS
6162 #define mingw_getsp tinyc_getbp
63+
6264 #else
65+
6366 typedef __int32 intptr_t;
6467 typedef unsigned __int32 uintptr_t;
6568 #define __stdcall __attribute__((__stdcall__))
6669 #define _X86_ 1
6770 #define WIN32 1
71+
6872 #endif
6973
7074 #define _INTEGRAL_MAX_BITS 64
@@ -75,6 +79,11 @@ typedef long __time32_t; · 4 unmodified lines
7579 typedef __int64 __time64_t;
7680 #define _TIME64_T_DEFINED
7781
82+typedef unsigned long size_t;
83+#define _SIZE_T_DEFINED
84+typedef long ssize_t;
85+#define _SSIZE_T_DEFINED
86+
7887 #ifdef _USE_32BIT_TIME_T
7988 #ifdef _WIN64
8089 #error You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with _WIN64

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