Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:06

0001 /*
0002 Copyright James E. King III, 2017
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_PLAT_WINDOWS_UWP_H
0009 #define BOOST_PREDEF_PLAT_WINDOWS_UWP_H
0010 
0011 #include <boost/predef/make.h>
0012 #include <boost/predef/os/windows.h>
0013 #include <boost/predef/version_number.h>
0014 
0015 /* tag::reference[]
0016 = `BOOST_PLAT_WINDOWS_UWP`
0017 
0018 http://docs.microsoft.com/windows/uwp/[Universal Windows Platform]
0019 is available if the current development environment is capable of targeting 
0020 UWP development.
0021 
0022 [options="header"]
0023 |===
0024 | {predef_symbol} | {predef_version}
0025 
0026 | `+__MINGW64_VERSION_MAJOR+` from `+_mingw.h+` | `>= 3`
0027 | `VER_PRODUCTBUILD` from `ntverp.h` | `>= 9200`
0028 |===
0029 */ // end::reference[]
0030 
0031 #define BOOST_PLAT_WINDOWS_UWP BOOST_VERSION_NUMBER_NOT_AVAILABLE
0032 #define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER_NOT_AVAILABLE
0033 
0034 #if BOOST_OS_WINDOWS
0035 //  MinGW (32-bit), WinCE, and wineg++ don't have a ntverp.h header
0036 #if !defined(__MINGW32__) && !defined(_WIN32_WCE) && !defined(__WINE__)
0037 #   include <ntverp.h>
0038 #   undef BOOST_PLAT_WINDOWS_SDK_VERSION
0039 #   define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER(0, 0, VER_PRODUCTBUILD)
0040 #endif
0041 
0042 // 9200 is Windows SDK 8.0 from ntverp.h which introduced family support
0043 #if ((BOOST_PLAT_WINDOWS_SDK_VERSION >= BOOST_VERSION_NUMBER(0, 0, 9200)) || \
0044      (defined(__MINGW64__) && __MINGW64_VERSION_MAJOR >= 3))
0045 #   undef BOOST_PLAT_WINDOWS_UWP
0046 #   define BOOST_PLAT_WINDOWS_UWP BOOST_VERSION_NUMBER_AVAILABLE
0047 #endif
0048 #endif
0049 
0050 #if BOOST_PLAT_WINDOWS_UWP
0051 #   define BOOST_PLAT_WINDOWS_UWP_AVAILABLE
0052 #   include <boost/predef/detail/platform_detected.h>
0053 #   include <winapifamily.h>    // Windows SDK
0054 #endif
0055 
0056 #define BOOST_PLAT_WINDOWS_UWP_NAME "Universal Windows Platform"
0057 
0058 #endif
0059 
0060 #include <boost/predef/detail/test.h>
0061 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_UWP, BOOST_PLAT_WINDOWS_UWP_NAME)