windows_runtime.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /*`
  16. [heading `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. [table
  22. [[__predef_symbol__] [__predef_version__]]
  23. [[`BOOST_PLAT_WINDOWS_PHONE`] [__predef_detection__]]
  24. [[`BOOST_PLAT_WINDOWS_STORE`] [__predef_detection__]]
  25. ]
  26. */
  27. #define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE
  28. #if BOOST_OS_WINDOWS && \
  29. (BOOST_PLAT_WINDOWS_STORE || BOOST_PLAT_WINDOWS_PHONE)
  30. # undef BOOST_PLAT_WINDOWS_RUNTIME
  31. # define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE
  32. #endif
  33. #if BOOST_PLAT_WINDOWS_RUNTIME
  34. # define BOOST_PLAT_WINDOWS_RUNTIME_AVAILABLE
  35. # include <boost/predef/detail/platform_detected.h>
  36. #endif
  37. #define BOOST_PLAT_WINDOWS_RUNTIME_NAME "Windows Runtime"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_RUNTIME,BOOST_PLAT_WINDOWS_RUNTIME_NAME)