X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=winconfig.h;h=6a4873657aa8d012c32b2183dcf7efaeaf2ac680;hb=5624d0d2ca232dc54a74d00eb3bf8012e9e04305;hp=1a9a35eb18ae5136db406fb8c8770e462c39d4e3;hpb=6f5ff636515e54f4f134dd311a663ab745159eb4;p=mono.git diff --git a/winconfig.h b/winconfig.h index 1a9a35eb18a..6a4873657aa 100644 --- a/winconfig.h +++ b/winconfig.h @@ -26,6 +26,32 @@ #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 */ @@ -101,7 +127,10 @@ #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 @@ -299,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 +397,9 @@ /* 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 */ @@ -643,4 +672,8 @@ /* Version number of package */ #define VERSION "#MONO_VERSION#" + +/* Version of the corlib-runtime interface */ +#define MONO_CORLIB_VERSION #MONO_CORLIB_VERSION# + #endif