X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=blobdiff_plain;f=winconfig.h;h=00edfeec2f7bd4b97fcf92d01db189f9e93b607e;hp=73f67534019a237795922f6b7b855ce5e4c8a259;hb=HEAD;hpb=9d5ff689fcb4f4b3a99328c1cb345ef5955a1d46 diff --git a/winconfig.h b/winconfig.h index 73f67534019..00edfeec2f7 100644 --- a/winconfig.h +++ b/winconfig.h @@ -1,6 +1,3 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - #ifndef _MSC_VER #include "cygconfig.h" #else @@ -26,13 +23,39 @@ #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 */ #define DISABLE_PORTABILITY 1 /* Windows does not have symlinks */ -#define PLATFORM_NO_SYMLINKS 1 +#define HOST_NO_SYMLINKS 1 /* String of disabled features */ #define DISABLED_FEATURES "none" @@ -101,7 +124,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 @@ -557,6 +583,12 @@ /* 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 + +/* Defined as strtok_s in eglib-config.hw */ +#define HAVE_STRTOK_R 1 + /* Have a working sigaltstack */ /* #undef HAVE_WORKING_SIGALTSTACK */ @@ -644,29 +676,7 @@ /* Version number of package */ #define VERSION "#MONO_VERSION#" -#ifndef HAVE_WINAPI_FAMILY_SUPPORT - -#define HAVE_WINAPI_FAMILY_SUPPORT - -/* WIN API Family support */ -#include +/* Version of the corlib-runtime interface */ +#define MONO_CORLIB_VERSION #MONO_CORLIB_VERSION# -#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