mingw64.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_PLAT_MINGW64_H
  8. #define BOOST_PREDEF_PLAT_MINGW64_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_PLAT_MINGW64`
  13. https://mingw-w64.org/[MinGW-w64] platform.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__MINGW64__+` | {predef_detection}
  19. | `+__MINGW64_VERSION_MAJOR+`, `+__MINGW64_VERSION_MINOR+` | V.R.0
  20. |===
  21. */ // end::reference[]
  22. #define BOOST_PLAT_MINGW64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if defined(__MINGW64__)
  24. # include <_mingw.h>
  25. # if !defined(BOOST_PLAT_MINGW64_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR))
  26. # define BOOST_PLAT_MINGW64_DETECTION \
  27. BOOST_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0)
  28. # endif
  29. # if !defined(BOOST_PLAT_MINGW64_DETECTION)
  30. # define BOOST_PLAT_MINGW64_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  31. # endif
  32. #endif
  33. #ifdef BOOST_PLAT_MINGW64_DETECTION
  34. # define BOOST_PLAT_MINGW64_AVAILABLE
  35. # if defined(BOOST_PREDEF_DETAIL_PLAT_DETECTED)
  36. # define BOOST_PLAT_MINGW64_EMULATED BOOST_PLAT_MINGW64_DETECTION
  37. # else
  38. # undef BOOST_PLAT_MINGW64
  39. # define BOOST_PLAT_MINGW64 BOOST_PLAT_MINGW64_DETECTION
  40. # endif
  41. # include <boost/predef/detail/platform_detected.h>
  42. #endif
  43. #define BOOST_PLAT_MINGW64_NAME "MinGW-w64"
  44. #endif
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64,BOOST_PLAT_MINGW64_NAME)
  47. #ifdef BOOST_PLAT_MINGW64_EMULATED
  48. #include <boost/predef/detail/test.h>
  49. BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64_EMULATED,BOOST_PLAT_MINGW64_NAME)
  50. #endif