edg.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_COMPILER_EDG_H
  8. #define BHO_PREDEF_COMPILER_EDG_H
  9. #include <asio2/bho/predef/version_number.h>
  10. #include <asio2/bho/predef/make.h>
  11. /* tag::reference[]
  12. = `BHO_COMP_EDG`
  13. http://en.wikipedia.org/wiki/Edison_Design_Group[EDG {CPP} Frontend] compiler.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__EDG__+` | {predef_detection}
  19. | `+__EDG_VERSION__+` | V.R.0
  20. |===
  21. */ // end::reference[]
  22. #define BHO_COMP_EDG BHO_VERSION_NUMBER_NOT_AVAILABLE
  23. #if defined(__EDG__)
  24. # define BHO_COMP_EDG_DETECTION BHO_PREDEF_MAKE_10_VRR(__EDG_VERSION__)
  25. #endif
  26. #ifdef BHO_COMP_EDG_DETECTION
  27. # if defined(BHO_PREDEF_DETAIL_COMP_DETECTED)
  28. # define BHO_COMP_EDG_EMULATED BHO_COMP_EDG_DETECTION
  29. # else
  30. # undef BHO_COMP_EDG
  31. # define BHO_COMP_EDG BHO_COMP_EDG_DETECTION
  32. # endif
  33. # define BHO_COMP_EDG_AVAILABLE
  34. # include <asio2/bho/predef/detail/comp_detected.h>
  35. #endif
  36. #define BHO_COMP_EDG_NAME "EDG C++ Frontend"
  37. #endif
  38. #include <asio2/bho/predef/detail/test.h>
  39. BHO_PREDEF_DECLARE_TEST(BHO_COMP_EDG,BHO_COMP_EDG_NAME)
  40. #ifdef BHO_COMP_EDG_EMULATED
  41. #include <asio2/bho/predef/detail/test.h>
  42. BHO_PREDEF_DECLARE_TEST(BHO_COMP_EDG_EMULATED,BHO_COMP_EDG_NAME)
  43. #endif