X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=winconfig.h;h=bc9c003c0adf4d369086ca9dd28406f5df1c199f;hb=915441ac03dc2b1ba412434529861eb830a7d585;hp=1b3d494ebf663081cc845031560afa56ff892066;hpb=5b64b929f02c445576c4b59854b2625faedb0742;p=mono.git diff --git a/winconfig.h b/winconfig.h index 1b3d494ebf6..bc9c003c0ad 100644 --- a/winconfig.h +++ b/winconfig.h @@ -7,19 +7,51 @@ /* The architecture this is running on */ #if defined(_M_IA64) -#define ARCHITECTURE "ia64" +#define MONO_ARCHITECTURE "ia64" #elif defined(_M_AMD64) -#define ARCHITECTURE "amd64" +#define MONO_ARCHITECTURE "amd64" #elif defined(_M_IX86) -#define ARCHITECTURE "x86" +#define MONO_ARCHITECTURE "x86" #else #error Unknown architecture #endif +#ifndef WINVER +#define WINVER 0x0A00 +#endif + +#include + #if _WIN32_WINNT < 0x0600 #error "Mono requires Windows Vista or later" #endif /* _WIN32_WINNT < 0x0600 */ +#ifndef HAVE_WINAPI_FAMILY_SUPPORT + +#define HAVE_WINAPI_FAMILY_SUPPORT + +/* WIN API Family support */ +#include + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + #define HAVE_CLASSIC_WINAPI_SUPPORT 1 + #define HAVE_UWP_WINAPI_SUPPORT 0 +#elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + #define HAVE_CLASSIC_WINAPI_SUPPORT 0 + #define HAVE_UWP_WINAPI_SUPPORT 1 +#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT + #error Unsupported WINAPI family +#endif +#else + #define HAVE_CLASSIC_WINAPI_SUPPORT 0 + #define HAVE_UWP_WINAPI_SUPPORT 0 +#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT + #error Unsupported WINAPI family +#endif +#endif + +#endif + /* * Features that are not required in the Windows port */ @@ -61,9 +93,6 @@ /* Disable reflection emit support */ /* #undef DISABLE_REFLECTION_EMIT */ -/* Disable inter-process shared handles */ -/* #undef DISABLE_SHARED_HANDLES */ - /* Disable advanced SSA JIT optimizations */ /* #undef DISABLE_SSA */ @@ -94,6 +123,15 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_CHECKLIST_H */ +/* Define to 1 if you have the header file. */ +#define HAVE_COMPLEX_H 1 + +/* Define to 1 if you have the `system' function. */ +#if HAVE_WINAPI_FAMILY_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) +#define HAVE_SYSTEM 1 +#endif + + /* Have /dev/random */ #define HAVE_CRYPT_RNG 1 @@ -167,18 +205,6 @@ /* Define to 1 if you have the `fstatvfs' function. */ /* #undef HAVE_FSTATVFS */ -/* Have GC_enable */ -/* #define HAVE_GC_ENABLE 1 */ - -/* Have GC_gcj_malloc */ -/* #define HAVE_GC_GCJ_MALLOC 1 */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_GC_GC_H */ - -/* Have gc.h */ -/* #define HAVE_GC_H 1 */ - /* Define to 1 if you have the `getaddrinfo' function. */ #define HAVE_GETADDRINFO 1 @@ -302,9 +328,6 @@ /* No GC support. */ /* #undef HAVE_NULL_GC */ -/* Have oprofile support */ -/* #undef HAVE_OPROFILE */ - /* Define to 1 if you have the `poll' function. */ /* #undef HAVE_POLL */ @@ -371,6 +394,12 @@ /* Using the simple generational GC. */ /* #undef HAVE_SGEN_GC */ + /* Have signal */ +#define HAVE_SIGNAL 1 + + /* Define to 1 if you have the header file. */ +#define HAVE_SIGNAL_H 1 + /* Have signbit */ /* #undef HAVE_SIGNBIT */ @@ -557,6 +586,9 @@ /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 +/* Define to 1 if you have IPv6 support. */ +#define HAVE_STRUCT_SOCKADDR_IN6 1 + /* Have a working sigaltstack */ /* #undef HAVE_WORKING_SIGALTSTACK */ @@ -642,5 +674,9 @@ /* #undef USE_MONO_MUTEX */ /* Version number of package */ -#define VERSION "4.1.0" +#define VERSION "#MONO_VERSION#" + +/* Version of the corlib-runtime interface */ +#define MONO_CORLIB_VERSION #MONO_CORLIB_VERSION# + #endif