windows_server.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. Copyright James E. King III, 2017
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_PREDEF_PLAT_WINDOWS_SERVER_H
  8. #define BOOST_PREDEF_PLAT_WINDOWS_SERVER_H
  9. #include <boost/predef/make.h>
  10. #include <boost/predef/os/windows.h>
  11. #include <boost/predef/platform/windows_uwp.h>
  12. #include <boost/predef/version_number.h>
  13. /* tag::reference[]
  14. = `BOOST_PLAT_WINDOWS_SERVER`
  15. https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP]
  16. for Windows Server development.
  17. [options="header"]
  18. |===
  19. | {predef_symbol} | {predef_version}
  20. | `WINAPI_FAMILY == WINAPI_FAMILY_SERVER` | {predef_detection}
  21. |===
  22. */ // end::reference[]
  23. #define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if BOOST_OS_WINDOWS && \
  25. defined(WINAPI_FAMILY_SERVER) && WINAPI_FAMILY == WINAPI_FAMILY_SERVER
  26. # undef BOOST_PLAT_WINDOWS_SERVER
  27. # define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_AVAILABLE
  28. #endif
  29. #if BOOST_PLAT_WINDOWS_SERVER
  30. # define BOOST_PLAT_WINDOWS_SERVER_AVAILABLE
  31. # include <boost/predef/detail/platform_detected.h>
  32. #endif
  33. #define BOOST_PLAT_WINDOWS_SERVER_NAME "Windows Server"
  34. #endif
  35. #include <boost/predef/detail/test.h>
  36. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_SERVER,BOOST_PLAT_WINDOWS_SERVER_NAME)