windows_store.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_STORE_H
  9. #define BOOST_PREDEF_PLAT_WINDOWS_STORE_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. /*`
  15. [heading `BOOST_PLAT_WINDOWS_STORE`]
  16. [@https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide UWP]
  17. for Windows Store development.
  18. [table
  19. [[__predef_symbol__] [__predef_version__]]
  20. [[`WINAPI_FAMILY == WINAPI_FAMILY_PC_APP`] [__predef_detection__]]
  21. [[`WINAPI_FAMILY == WINAPI_FAMILY_APP` (deprecated)] [__predef_detection__]]
  22. ]
  23. */
  24. #define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if BOOST_OS_WINDOWS && \
  26. ((defined(WINAPI_FAMILY_PC_APP) && WINAPI_FAMILY == WINAPI_FAMILY_PC_APP) || \
  27. (defined(WINAPI_FAMILY_APP) && WINAPI_FAMILY == WINAPI_FAMILY_APP))
  28. # undef BOOST_PLAT_WINDOWS_STORE
  29. # define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_AVAILABLE
  30. #endif
  31. #if BOOST_PLAT_WINDOWS_STORE
  32. # define BOOST_PLAT_WINDOWS_STORE_AVAILABLE
  33. # include <boost/predef/detail/platform_detected.h>
  34. #endif
  35. #define BOOST_PLAT_WINDOWS_STORE_NAME "Windows Store"
  36. #endif
  37. #include <boost/predef/detail/test.h>
  38. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_STORE,BOOST_PLAT_WINDOWS_STORE_NAME)