cygwin.h 1.2 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_CYGWIN_H
  8. #define BOOST_PREDEF_OS_CYGWIN_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_CYGWIN`
  13. http://en.wikipedia.org/wiki/Cygwin[Cygwin] evironment.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__CYGWIN__+` | {predef_detection}
  18. | `CYGWIN_VERSION_API_MAJOR`, `CYGWIN_VERSION_API_MINOR` | V.R.0
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_OS_CYGWIN BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  23. defined(__CYGWIN__) \
  24. )
  25. # include <cygwin/version.h>
  26. # undef BOOST_OS_CYGWIN
  27. # define BOOST_OS_CYGWIN \
  28. BOOST_VERSION_NUMBER(CYGWIN_VERSION_API_MAJOR,\
  29. CYGWIN_VERSION_API_MINOR, 0)
  30. #endif
  31. #if BOOST_OS_CYGWIN
  32. # define BOOST_OS_CYGWIN_AVAILABLE
  33. # include <boost/predef/detail/os_detected.h>
  34. #endif
  35. #define BOOST_OS_CYGWIN_NAME "Cygwin"
  36. #endif
  37. #include <boost/predef/detail/test.h>
  38. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_CYGWIN,BOOST_OS_CYGWIN_NAME)