4 * This file is for TinyCC and not part of the Mingw32 package.
6 * THIS SOFTWARE IS NOT COPYRIGHTED
8 * This source code is offered for use in the public domain. You may
9 * use, modify or distribute it freely.
11 * This code is distributed in the hope that it will be useful but
12 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
13 * DISCLAIMED. This includes but is not limited to warranties of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 /* some winapi files define these before including _mingw.h --> */
33 #define __int64 long long
37 #define __declspec(x) __attribute__((x))
38 #define __unaligned __attribute__((packed))
39 #define __fastcall __attribute__((fastcall))
43 #define __MINGW_IMPORT extern __declspec(dllimport)
44 #define __MINGW_ATTRIB_NORETURN
45 #define __MINGW_ATTRIB_CONST
46 #define __MINGW_ATTRIB_DEPRECATED
47 #define __MINGW_ATTRIB_MALLOC
48 #define __MINGW_ATTRIB_PURE
49 #define __MINGW_ATTRIB_NONNULL(arg)
50 #define __MINGW_NOTHROW
51 #define __GNUC_VA_LIST
53 #define _CRTIMP extern
54 #define __CRT_INLINE extern __inline__
56 #define _CRT_ALIGN(x) __attribute__((aligned(x)))
57 #define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
58 #define _CRT_PACKING 8
59 #define __CRT_UNALIGNED
63 #define _TRUNCATE ((size_t)-1)
66 #define __CRT_STRINGIZE(_Value) #_Value
67 #define _CRT_STRINGIZE(_Value) __CRT_STRINGIZE(_Value)
68 #define __CRT_WIDE(_String) L ## _String
69 #define _CRT_WIDE(_String) __CRT_WIDE(_String)
75 #define _M_X64 100 /* Visual Studio */
76 #define _M_AMD64 100 /* Visual Studio */
77 #define USE_MINGW_SETJMP_TWO_ARGS
78 #define mingw_getsp tinyc_getbp
81 #define __stdcall __attribute__((__stdcall__))
83 #define _M_IX86 300 /* Visual Studio */
85 #define _USE_32BIT_TIME_T
86 #define __TRY__ void __try__(void**), *_sehrec[6]; __try__(_sehrec);
90 #define _SIZE_T_DEFINED
91 #define _SSIZE_T_DEFINED
92 #define _PTRDIFF_T_DEFINED
93 #define _WCHAR_T_DEFINED
94 #define _UINTPTR_T_DEFINED
95 #define _INTPTR_T_DEFINED
96 #define _INTEGRAL_MAX_BITS 64
98 #ifndef _TIME32_T_DEFINED
99 #define _TIME32_T_DEFINED
100 typedef long __time32_t
;
103 #ifndef _TIME64_T_DEFINED
104 #define _TIME64_T_DEFINED
105 typedef long long __time64_t
;
108 #ifndef _TIME_T_DEFINED
109 #define _TIME_T_DEFINED
110 #ifdef _USE_32BIT_TIME_T
111 typedef __time32_t
time_t;
113 typedef __time64_t
time_t;
117 #ifndef _WCTYPE_T_DEFINED
118 #define _WCTYPE_T_DEFINED
119 typedef wchar_t wctype_t;
124 typedef __WINT_TYPE__
wint_t;
128 #define _ERRCODE_DEFINED
130 typedef struct threadlocaleinfostruct
*pthreadlocinfo
;
131 typedef struct threadmbcinfostruct
*pthreadmbcinfo
;
132 typedef struct localeinfo_struct _locale_tstruct
,*_locale_t
;
135 #define _ANONYMOUS_UNION
136 #define _ANONYMOUS_STRUCT
137 #define DECLSPEC_NORETURN
138 #define DECLARE_STDCALL_P(type) __stdcall type
143 # define WINVER 0x0502
146 # define _WIN32_WINNT 0x502
149 #define __C89_NAMELESS
150 #define __MINGW_EXTENSION
151 #define WINAPI_FAMILY_PARTITION(X) 1
153 #endif /* __MINGW_H */