windows_desktop.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_DESKTOP_H
  9. #define BOOST_PREDEF_PLAT_WINDOWS_DESKTOP_H
  10. #include <boost/predef/make.h>
  11. #include <boost/predef/os/windows.h>
  12. #include <boost/predef/platform/windows_uwp.h>
  13. #include <boost/predef/version_number.h>
  14. /* tag::reference[]
  15. = `BOOST_PLAT_WINDOWS_DESKTOP`
  16. https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP]
  17. for Windows Desktop development. Also available if the Platform SDK is too
  18. old to support UWP.
  19. [options="header"]
  20. |===
  21. | {predef_symbol} | {predef_version}
  22. | `WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP` | {predef_detection}
  23. | `!BOOST_PLAT_WINDOWS_UWP` | {predef_detection}
  24. |===
  25. */ // end::reference[]
  26. #define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_NOT_AVAILABLE
  27. #if BOOST_OS_WINDOWS && \
  28. ((defined(WINAPI_FAMILY_DESKTOP_APP) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) || \
  29. !BOOST_PLAT_WINDOWS_UWP)
  30. # undef BOOST_PLAT_WINDOWS_DESKTOP
  31. # define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_AVAILABLE
  32. #endif
  33. #if BOOST_PLAT_WINDOWS_DESKTOP
  34. # define BOOST_PLAT_WINDOWS_DESKTOP_AVAILABLE
  35. # include <boost/predef/detail/platform_detected.h>
  36. #endif
  37. #define BOOST_PLAT_WINDOWS_DESKTOP_NAME "Windows Desktop"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_DESKTOP,BOOST_PLAT_WINDOWS_DESKTOP_NAME)