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 BHO_PREDEF_PLAT_MINGW64_H
  8. #define BHO_PREDEF_PLAT_MINGW64_H
  9. #include <asio2/bho/predef/version_number.h>
  10. #include <asio2/bho/predef/make.h>
  11. /* tag::reference[]
  12. = `BHO_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 BHO_PLAT_MINGW64 BHO_VERSION_NUMBER_NOT_AVAILABLE
  23. #if defined(__MINGW64__)
  24. # include <_mingw.h>
  25. # if !defined(BHO_PLAT_MINGW64_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR))
  26. # define BHO_PLAT_MINGW64_DETECTION \
  27. BHO_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0)
  28. # endif
  29. # if !defined(BHO_PLAT_MINGW64_DETECTION)
  30. # define BHO_PLAT_MINGW64_DETECTION BHO_VERSION_NUMBER_AVAILABLE
  31. # endif
  32. #endif
  33. #ifdef BHO_PLAT_MINGW64_DETECTION
  34. # define BHO_PLAT_MINGW64_AVAILABLE
  35. # if defined(BHO_PREDEF_DETAIL_PLAT_DETECTED)
  36. # define BHO_PLAT_MINGW64_EMULATED BHO_PLAT_MINGW64_DETECTION
  37. # else
  38. # undef BHO_PLAT_MINGW64
  39. # define BHO_PLAT_MINGW64 BHO_PLAT_MINGW64_DETECTION
  40. # endif
  41. # include <asio2/bho/predef/detail/platform_detected.h>
  42. #endif
  43. #define BHO_PLAT_MINGW64_NAME "MinGW-w64"
  44. #endif
  45. #include <asio2/bho/predef/detail/test.h>
  46. BHO_PREDEF_DECLARE_TEST(BHO_PLAT_MINGW64,BHO_PLAT_MINGW64_NAME)
  47. #ifdef BHO_PLAT_MINGW64_EMULATED
  48. #include <asio2/bho/predef/detail/test.h>
  49. BHO_PREDEF_DECLARE_TEST(BHO_PLAT_MINGW64_EMULATED,BHO_PLAT_MINGW64_NAME)
  50. #endif