Update to emscripten 1.39.4 (#18016)
[mono-project.git] / msvc / msvc-win32-support.h
blob926de0c17d08c21dc88ed0e7b4f60a0d15e466eb
1 #pragma once
3 #ifdef _MSC_VER
5 #ifndef WINVER
6 #define WINVER 0x0A00
7 #endif
9 #include <SDKDDKVer.h>
11 #if _WIN32_WINNT < 0x0601
12 #error "Mono requires Windows 7 or later."
13 #endif /* _WIN32_WINNT < 0x0601 */
15 #ifndef HAVE_WINAPI_FAMILY_SUPPORT
17 #define HAVE_WINAPI_FAMILY_SUPPORT
19 /* WIN API Family support */
20 #include <winapifamily.h>
22 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
23 #define HAVE_CLASSIC_WINAPI_SUPPORT 1
24 #define HAVE_UWP_WINAPI_SUPPORT 0
25 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
26 #define HAVE_CLASSIC_WINAPI_SUPPORT 0
27 #define HAVE_UWP_WINAPI_SUPPORT 1
28 #ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
29 #error Unsupported WINAPI family
30 #endif
31 #else
32 #define HAVE_CLASSIC_WINAPI_SUPPORT 0
33 #define HAVE_UWP_WINAPI_SUPPORT 0
34 #ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
35 #error Unsupported WINAPI family
36 #endif
37 #endif
39 #endif
41 #endif