windows_phone.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 BHO_PREDEF_PLAT_WINDOWS_PHONE_H
  9. #define BHO_PREDEF_PLAT_WINDOWS_PHONE_H
  10. #include <asio2/bho/predef/make.h>
  11. #include <asio2/bho/predef/os/windows.h>
  12. #include <asio2/bho/predef/platform/windows_uwp.h>
  13. #include <asio2/bho/predef/version_number.h>
  14. /* tag::reference[]
  15. = `BHO_PLAT_WINDOWS_PHONE`
  16. https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP]
  17. for Windows Phone development.
  18. [options="header"]
  19. |===
  20. | {predef_symbol} | {predef_version}
  21. | `WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP` | {predef_detection}
  22. |===
  23. */ // end::reference[]
  24. #define BHO_PLAT_WINDOWS_PHONE BHO_VERSION_NUMBER_NOT_AVAILABLE
  25. #if BHO_OS_WINDOWS && \
  26. defined(WINAPI_FAMILY_PHONE_APP) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
  27. # undef BHO_PLAT_WINDOWS_PHONE
  28. # define BHO_PLAT_WINDOWS_PHONE BHO_VERSION_NUMBER_AVAILABLE
  29. #endif
  30. #if BHO_PLAT_WINDOWS_PHONE
  31. # define BHO_PLAT_WINDOWS_PHONE_AVAILABLE
  32. # include <asio2/bho/predef/detail/platform_detected.h>
  33. #endif
  34. #define BHO_PLAT_WINDOWS_PHONE_NAME "Windows Phone"
  35. #endif
  36. #include <asio2/bho/predef/detail/test.h>
  37. BHO_PREDEF_DECLARE_TEST(BHO_PLAT_WINDOWS_PHONE,BHO_PLAT_WINDOWS_PHONE_NAME)