windows_server.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /*`
  14. [heading `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. [table
  18. [[__predef_symbol__] [__predef_version__]]
  19. [[`WINAPI_FAMILY == WINAPI_FAMILY_SERVER`] [__predef_detection__]]
  20. ]
  21. */
  22. #define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if BOOST_OS_WINDOWS && \
  24. defined(WINAPI_FAMILY_SERVER) && WINAPI_FAMILY == WINAPI_FAMILY_SERVER
  25. # undef BOOST_PLAT_WINDOWS_SERVER
  26. # define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_AVAILABLE
  27. #endif
  28. #if BOOST_PLAT_WINDOWS_SERVER
  29. # define BOOST_PLAT_WINDOWS_SERVER_AVAILABLE
  30. # include <boost/predef/detail/platform_detected.h>
  31. #endif
  32. #define BOOST_PLAT_WINDOWS_SERVER_NAME "Windows Server"
  33. #endif
  34. #include <boost/predef/detail/test.h>
  35. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_SERVER,BOOST_PLAT_WINDOWS_SERVER_NAME)