windows.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. /*`
  12. [heading `BOOST_OS_WINDOWS`]
  13. [@http://en.wikipedia.org/wiki/Category:Microsoft_Windows Microsoft Windows] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`_WIN32`] [__predef_detection__]]
  17. [[`_WIN64`] [__predef_detection__]]
  18. [[`__WIN32__`] [__predef_detection__]]
  19. [[`__TOS_WIN__`] [__predef_detection__]]
  20. [[`__WINDOWS__`] [__predef_detection__]]
  21. ]
  22. */
  23. #define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  25. defined(_WIN32) || defined(_WIN64) || \
  26. defined(__WIN32__) || defined(__TOS_WIN__) || \
  27. defined(__WINDOWS__) \
  28. )
  29. # undef BOOST_OS_WINDOWS
  30. # define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_AVAILABLE
  31. #endif
  32. #if BOOST_OS_WINDOWS
  33. # define BOOST_OS_WINDOWS_AVAILABLE
  34. # include <boost/predef/detail/os_detected.h>
  35. #endif
  36. #define BOOST_OS_WINDOWS_NAME "Microsoft Windows"
  37. #endif
  38. #include <boost/predef/detail/test.h>
  39. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_WINDOWS,BOOST_OS_WINDOWS_NAME)