diff options
author | lateralusX <lateralusx.github@gmail.com> | 2016-09-27 12:28:57 +0300 |
---|---|---|
committer | lateralusX <lateralusx.github@gmail.com> | 2016-09-27 12:28:57 +0300 |
commit | 109d34b9c0526c21e8de3d56fcb36ce2d3316e4b (patch) | |
tree | 5b7f69b6ccd41d3f7f3e5bffa1721b696d9aa4d0 /winconfig.h | |
parent | b1b62469dab1d768c491505a622b83f135b781d9 (diff) |
Build eglib under none desktop Windows API family.
Initial work to build eglib under none desktop Windows API family. Classic
Windows API have been split into families and partitions in order to support
different subsets on different Windows platforms. In order to build against
other Windows targets/platforms Mono needs to follow these families/partitions
in order to successfully build where API’s have been removed/replaced. Since most
Mono platforms uses the Windows API signatures a new defined has been added to all
platforms, HAVE_CLASSIC_WINAPI_SUPPORT, used to decide what implementation to include.
On none Windows platforms this is always defined and on Windows platforms it follows the
winapifamily.h. In order to keep down regressions, the existing API’s are kept for HAVE_CLASSIC_WINAPI_SUPPORT
even if there are more modern replacements available.
Diffstat (limited to 'winconfig.h')
-rw-r--r-- | winconfig.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/winconfig.h b/winconfig.h index a6daf8b0528..d15685302eb 100644 --- a/winconfig.h +++ b/winconfig.h @@ -643,4 +643,24 @@ /* Version number of package */ #define VERSION "#MONO_VERSION#" + +#ifndef HAVE_WINAPI_FAMILY_SUPPORT + +#define HAVE_WINAPI_FAMILY_SUPPORT + +/* WIN API Family support */ +#include <winapifamily.h> + +#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 +#else + #define HAVE_CLASSIC_WINAPI_SUPPORT 0 + #define HAVE_UWP_WINAPI_SUPPORT 0 +#endif + +#endif #endif |