X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=winconfig.h;h=73f67534019a237795922f6b7b855ce5e4c8a259;hb=fe0b8311e7cb09d8251b27671550b6cb131806dc;hp=2a49fea8b19401abb058883d9ad6fe8b3a2b6d86;hpb=f9596050629ebf0d8d24fb256cc08f98d6d2c7e7;p=mono.git diff --git a/winconfig.h b/winconfig.h index 2a49fea8b19..73f67534019 100644 --- a/winconfig.h +++ b/winconfig.h @@ -299,9 +299,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 */ @@ -646,4 +643,30 @@ /* Version number of package */ #define VERSION "#MONO_VERSION#" + +#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 #endif