2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
10 #define _INTEGRAL_MAX_BITS 64
14 #define MINGW64_VERSION 1.0
15 #define MINGW64_VERSION_MAJOR 1
16 #define MINGW64_VERSION_MINOR 0
17 #define MINGW64_VERSION_STATE "alpha"
28 /* These compilers do support __declspec */
29 # if !defined(__MINGW32__) && !defined(__MINGW64__) && !defined(__CYGWIN32__)
30 # define __declspec(x) __attribute__((x))
35 #define __restrict__ /* nothing */
38 #if defined (__GNUC__) && defined (__GNUC_MINOR__)
39 #define __MINGW_GNUC_PREREQ(major, minor) \
41 || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
43 #define __MINGW_GNUC_PREREQ(major, minor) 0
46 #if defined (_MSC_VER)
47 #define __MINGW_MSC_PREREQ(major, minor) ((major * 100 + minor * 10) >= _MSC_VER)
49 #define __MINGW_MSC_PREREQ(major, minor) 0
52 #define USE___UUIDOF 0
55 # define __CRT_INLINE inline
56 #elif defined(_MSC_VER)
57 # define __CRT_INLINE __inline
58 #elif defined(__GNUC__)
59 # if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L)
60 # define __CRT_INLINE extern inline __attribute__((__always_inline__,__gnu_inline__))
62 # define __CRT_INLINE extern __inline__ __attribute__((__always_inline__))
67 # define __UNUSED_PARAM(x)
70 # define __UNUSED_PARAM(x) x __attribute__ ((__unused__))
72 # define __UNUSED_PARAM(x) x
81 # elif defined(_MSC_VER) && !defined(_M_IA64) && !defined(_M_AMD64)
89 #define __MINGW_ATTRIB_NORETURN __attribute__ ((__noreturn__))
90 #define __MINGW_ATTRIB_CONST __attribute__ ((__const__))
91 #elif __MINGW_MSC_PREREQ(12, 0)
92 #define __MINGW_ATTRIB_NORETURN __declspec(noreturn)
93 #define __MINGW_ATTRIB_CONST
95 #define __MINGW_ATTRIB_NORETURN
96 #define __MINGW_ATTRIB_CONST
99 #if __MINGW_GNUC_PREREQ (3, 0)
100 #define __MINGW_ATTRIB_MALLOC __attribute__ ((__malloc__))
101 #define __MINGW_ATTRIB_PURE __attribute__ ((__pure__))
102 #elif __MINGW_MSC_PREREQ(14, 0)
103 #define __MINGW_ATTRIB_MALLOC __declspec(noalias) __declspec(restrict)
104 #define __MINGW_ATTRIB_PURE
106 #define __MINGW_ATTRIB_MALLOC
107 #define __MINGW_ATTRIB_PURE
110 /* Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
111 variadiac macro facility, because variadic macros cause syntax
112 errors with --traditional-cpp. */
113 #if __MINGW_GNUC_PREREQ (3, 3)
114 #define __MINGW_ATTRIB_NONNULL(arg) __attribute__ ((__nonnull__ (arg)))
116 #define __MINGW_ATTRIB_NONNULL(arg)
117 #endif /* GNUC >= 3.3 */
119 #if __MINGW_GNUC_PREREQ (3, 1)
120 #define __MINGW_ATTRIB_DEPRECATED __attribute__ ((__deprecated__))
121 #elif __MINGW_MSC_PREREQ(12, 0)
122 #define __MINGW_ATTRIB_DEPRECATED __declspec(deprecated)
124 #define __MINGW_ATTRIB_DEPRECATED
127 #if __MINGW_GNUC_PREREQ (3, 3)
128 #define __MINGW_NOTHROW __attribute__ ((__nothrow__))
129 #elif __MINGW_MSC_PREREQ(12, 0) && defined (__cplusplus)
130 #define __MINGW_NOTHROW __declspec(nothrow)
132 #define __MINGW_NOTHROW
135 /* TODO: Mark (almost) all CRT functions as __MINGW_NOTHROW. This will
136 allow GCC to optimize away some EH unwind code, at least in DW2 case. */
138 #ifndef __MSVCRT_VERSION__
139 /* High byte is the major version, low byte is the minor. */
140 # define __MSVCRT_VERSION__ 0x0700
144 //#define WINVER 0x0502
147 //#ifndef _WIN32_WINNT
148 //#define _WIN32_WINNT 0x502
153 #define __int16 short
155 #define __int64 long long
157 typedef int __int128
__attribute__ ((mode (TI
)));
161 # define __forceinline extern __inline __attribute((always_inline))
166 #define __nothrow __declspec(nothrow)
175 #undef USE_MINGW_SETJMP_TWO_ARGS
176 #define USE_MINGW_SETJMP_TWO_ARGS
179 /* Diable deprecation for now! */
180 #define _CRT_SECURE_NO_DEPRECATE
181 #define _CRT_SECURE_NO_DEPRECATE_CORE
183 #define _CRT_NONSTDC_NO_DEPRECATE
186 #define __crt_typefix(ctype)
189 #define _CRT_UNUSED(x) (void)x
192 #define __MINGW_USE_UNDERSCORE_PREFIX 1
194 #if __MINGW_USE_UNDERSCORE_PREFIX == 0
195 #define __MINGW_IMP_SYMBOL(sym) _imp_##sym
196 #define __MINGW_USYMBOL(sym) sym
198 #define __MINGW_IMP_SYMBOL(sym) _imp__##sym
199 #define __MINGW_USYMBOL(sym) _##sym
202 #endif /* !_INC_MINGW */