windows.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. Copyright Rene Rivera 2008-2015
  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_OS_WINDOWS_H
  8. #define BOOST_PREDEF_OS_WINDOWS_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_WINDOWS`
  13. http://en.wikipedia.org/wiki/Category:Microsoft_Windows[Microsoft Windows] operating system.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+_WIN32+` | {predef_detection}
  18. | `+_WIN64+` | {predef_detection}
  19. | `+__WIN32__+` | {predef_detection}
  20. | `+__TOS_WIN__+` | {predef_detection}
  21. | `+__WINDOWS__+` | {predef_detection}
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  26. defined(_WIN32) || defined(_WIN64) || \
  27. defined(__WIN32__) || defined(__TOS_WIN__) || \
  28. defined(__WINDOWS__) \
  29. )
  30. # undef BOOST_OS_WINDOWS
  31. # define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_AVAILABLE
  32. #endif
  33. #if BOOST_OS_WINDOWS
  34. # define BOOST_OS_WINDOWS_AVAILABLE
  35. # include <boost/predef/detail/os_detected.h>
  36. #endif
  37. #define BOOST_OS_WINDOWS_NAME "Microsoft Windows"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_WINDOWS,BOOST_OS_WINDOWS_NAME)