5 /* Building Mono runtime under MSVC uses this template for it's config.h since autogen.sh can't */
6 /* generate a config.h that is suitable for MSVC builds. The below template will still get */
7 /* some dynamic configuration from autogen.sh config.h, if one exists. */
8 #include <msvc/msvc-win32-support.h>
9 #include <msvc/msvc-disabled-warnings.h>
12 /* Only used when building using Boehm GC and only supported on x86 builds */
13 #define DEFAULT_GC_NAME "Included Boehm (with typed GC)"
16 /* Some VES is available at runtime */
17 #define ENABLE_ILGEN 1
19 /* Start configure ENABLE_DEFINES picked up from cygconfig.h or other external source, if available */
20 /* @ENABLE_DEFINES@ */
21 /* End configure ENABLE_DEFINES picked up from cygconfig.h or other external source, if available */
23 /* Windows MSVC builds defaults to preemptive suspend. Disable ENABLE_HYBRID_SUSPEND defines. */
24 #undef ENABLE_HYBRID_SUSPEND
26 /* No ENABLE_DEFINES below this point */
28 /* Keep in sync with netcore runtime-preset in configure.ac */
30 #ifndef DISABLE_REMOTING
31 #define DISABLE_REMOTING 1
34 // FIXME: disable SIMD support for Windows, see https://github.com/dotnet/runtime/issues/1933
35 #define DISABLE_SIMD 1
37 #ifndef DISABLE_REFLECTION_EMIT_SAVE
38 #define DISABLE_REFLECTION_EMIT_SAVE 1
40 #ifndef DISABLE_APPDOMAINS
41 #define DISABLE_APPDOMAINS 1
43 #ifndef DISABLE_CLEANUP
44 #define DISABLE_CLEANUP 1
46 #ifndef DISABLE_DESKTOP_LOADER
47 #define DISABLE_DESKTOP_LOADER 1
49 #ifndef DISABLE_SECURITY
50 #define DISABLE_SECURITY 1
61 #ifndef DISABLE_PERFCOUNTERS
62 #define DISABLE_PERFCOUNTERS 1
64 #ifndef DISABLE_ATTACH
65 #define DISABLE_ATTACH 1
67 #ifndef DISABLE_DLLMAP
68 #define DISABLE_DLLMAP 1
72 /* Disable runtime state dumping */
73 #define DISABLE_CRASH_REPORTING 1
75 /* String of disabled features */
76 #define DISABLED_FEATURES "none"
78 /* Disables the IO portability layer */
79 #define DISABLE_PORTABILITY 1
81 /* Start configure DISABLE_DEFINES picked up from cygconfig.h or other external source, if available */
82 /* @DISABLE_DEFINES@ */
83 /* End configure DISABLE_DEFINES picked up from cygconfig.h or other external source, if available */
85 /* No DISABLE_DEFINES below this point */
90 /* Define to 1 if you have the `system' function. */
91 #if HAVE_WINAPI_FAMILY_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
95 /* Define to 1 if you have the <complex.h> header file. */
96 #define HAVE_COMPLEX_H 1
98 #if defined(HAVE_SGEN_GC) && !defined(HAVE_CONC_GC_AS_DEFAULT)
99 /* Defaults to concurrent GC */
100 #define HAVE_CONC_GC_AS_DEFAULT 1
103 /* Have /dev/random */
104 #define HAVE_CRYPT_RNG 1
106 /* Define to 1 if you have the `getaddrinfo' function. */
107 #define HAVE_GETADDRINFO 1
109 /* Define to 1 if you have the `getnameinfo' function. */
110 #define HAVE_GETNAMEINFO 1
112 /* Define to 1 if you have the `getprotobyname' function. */
113 #define HAVE_GETPROTOBYNAME 1
116 #define HAVE_INET_NTOP 1
118 /* Define to 1 if you have the `inet_pton' function. */
119 #define HAVE_INET_PTON 1
121 /* Define to 1 if you have the <inttypes.h> header file. */
122 #define HAVE_INTTYPES_H 1
124 /* Define to 1 if you have the <memory.h> header file. */
125 #define HAVE_MEMORY_H 1
127 #if defined(HAVE_SGEN_GC) && !defined(HAVE_MOVING_COLLECTOR)
128 /* Moving collector */
129 #define HAVE_MOVING_COLLECTOR 1
132 /* Define to 1 if you have the `signal' function. */
133 #define HAVE_SIGNAL 1
135 /* Define to 1 if you have the <signal.h> header file. */
136 #define HAVE_SIGNAL_H 1
138 /* Define to 1 if you have the <stdint.h> header file. */
139 #define HAVE_STDINT_H 1
141 /* Define to 1 if you have the <stdlib.h> header file. */
142 #define HAVE_STDLIB_H 1
144 /* Define to 1 if you have the <strings.h> header file. */
145 #define HAVE_STRINGS_H 1
147 /* Define to 1 if you have the <string.h> header file. */
148 #define HAVE_STRING_H 1
150 /* Define to 1 if you have the `strtok_r' function. */
151 #define HAVE_STRTOK_R 1
153 /* Have struct ip_mreq */
154 #define HAVE_STRUCT_IP_MREQ 1
156 /* Define to 1 if the system has the type `struct sockaddr_in6'. */
157 #define HAVE_STRUCT_SOCKADDR_IN6 1
159 /* Define to 1 if you have the <sys/stat.h> header file. */
160 #define HAVE_SYS_STAT_H 1
162 /* Define to 1 if you have the <sys/types.h> header file. */
163 #define HAVE_SYS_TYPES_H 1
165 /* Define to 1 if you have the <sys/utime.h> header file. */
166 #define HAVE_SYS_UTIME_H 1
168 /* Define to 1 if you have the <wchar.h> header file. */
169 #define HAVE_WCHAR_H 1
171 /* Define to 1 if you have the <winternl.h> header file. */
172 #define HAVE_WINTERNL_H 1
174 #if defined(HAVE_SGEN_GC) && !defined(HAVE_WRITE_BARRIERS)
175 #define HAVE_WRITE_BARRIERS
178 /* Start configure HAVE_DEFINES picked up from cygconfig.h or other external source, if available */
180 /* End configure HAVE_DEFINES picked up from cygconfig.h or other external source, if available */
182 /* No HAVE_DEFINES below this point */
184 /* This platform does not support symlinks */
185 #define HOST_NO_SYMLINKS 1
187 /* Host Platform is Win32 */
190 /* The architecture this is running on */
192 #define MONO_ARCHITECTURE "ia64"
193 #elif defined(_M_AMD64)
194 #define MONO_ARCHITECTURE "amd64"
195 #elif defined(_M_IX86)
196 #define MONO_ARCHITECTURE "x86"
198 #error Unknown architecture
201 /* Version of the corlib-runtime interface */
202 #define MONO_CORLIB_VERSION "#MONO_CORLIB_VERSION#"
204 /* Have __thread keyword */
205 #define MONO_KEYWORD_THREAD __declspec (thread)
207 /* Length of zero length arrays */
208 #define MONO_ZERO_LEN_ARRAY 1
210 /* Name of /dev/random */
211 #define NAME_DEV_RANDOM ""
213 /* Name of package */
214 #define PACKAGE "mono"
216 /* Define to the address where bug reports for this package should be sent. */
217 #define PACKAGE_BUGREPORT "https://github.com/mono/mono/issues/new"
219 /* Define to the full name of this package. */
220 #define PACKAGE_NAME "mono"
222 /* Define to the full name and version of this package. */
223 #define PACKAGE_STRING "mono #MONO_VERSION#"
225 /* Define to the one symbol short name of this package. */
226 #define PACKAGE_TARNAME "mono"
228 /* Define to the home page for this package. */
229 #define PACKAGE_URL ""
231 /* Define to the version of this package. */
232 #define PACKAGE_VERSION "#MONO_VERSION#"
234 /* The size of `int', as computed by sizeof. */
237 /* The size of `long', as computed by sizeof. */
238 #define SIZEOF_LONG 4
240 /* The size of `long long', as computed by sizeof. */
241 #define SIZEOF_LONG_LONG 8
243 /* size of target machine integer registers */
245 #define SIZEOF_REGISTER 8
247 #define SIZEOF_REGISTER 4
250 /* The size of `void *', as computed by sizeof. */
252 #define SIZEOF_VOID_P 8
254 #define SIZEOF_VOID_P 4
257 /* Define to 1 if you have the ANSI C header files. */
258 #define STDC_HEADERS 1
261 #define TARGET_AMD64 1
268 /* byte order of target */
269 #define TARGET_BYTE_ORDER G_BYTE_ORDER
271 /* wordsize of target */
272 #define TARGET_SIZEOF_VOID_P SIZEOF_VOID_P
274 /* Platform is Win32 */
275 #define TARGET_WIN32 1
277 /* Version number of package */
278 #define VERSION "#MONO_VERSION#"
282 /* Not building under MSVC, use autogen.sh generated config.h */
283 #include "cygconfig.h"
287 #if defined(ENABLE_LLVM) && defined(HOST_WIN32) && defined(TARGET_WIN32) && (!defined(TARGET_AMD64) || !defined(_MSC_VER))
288 #error LLVM for host=Windows and target=Windows is only supported on x64 MSVC build.