windows_runtime.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (c) Microsoft Corporation 2014
  3. Copyright Rene Rivera 2015
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_PREDEF_PLAT_WINDOWS_RUNTIME_H
  9. #define BOOST_PREDEF_PLAT_WINDOWS_RUNTIME_H
  10. #include <boost/predef/make.h>
  11. #include <boost/predef/os/windows.h>
  12. #include <boost/predef/platform/windows_phone.h>
  13. #include <boost/predef/platform/windows_store.h>
  14. #include <boost/predef/version_number.h>
  15. /* tag::reference[]
  16. = `BOOST_PLAT_WINDOWS_RUNTIME`
  17. Deprecated.
  18. https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP]
  19. for Windows Phone or Store development. This does not align to the existing development model for
  20. UWP and is deprecated. Use one of the other `BOOST_PLAT_WINDOWS_*`definitions instead.
  21. [options="header"]
  22. |===
  23. | {predef_symbol} | {predef_version}
  24. | `BOOST_PLAT_WINDOWS_PHONE` | {predef_detection}
  25. | `BOOST_PLAT_WINDOWS_STORE` | {predef_detection}
  26. |===
  27. */ // end::reference[]
  28. #define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE
  29. #if BOOST_OS_WINDOWS && \
  30. (BOOST_PLAT_WINDOWS_STORE || BOOST_PLAT_WINDOWS_PHONE)
  31. # undef BOOST_PLAT_WINDOWS_RUNTIME
  32. # define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE
  33. #endif
  34. #if BOOST_PLAT_WINDOWS_RUNTIME
  35. # define BOOST_PLAT_WINDOWS_RUNTIME_AVAILABLE
  36. # include <boost/predef/detail/platform_detected.h>
  37. #endif
  38. #define BOOST_PLAT_WINDOWS_RUNTIME_NAME "Windows Runtime"
  39. #endif
  40. #include <boost/predef/detail/test.h>
  41. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_RUNTIME,BOOST_PLAT_WINDOWS_RUNTIME_NAME)