msl.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_LIBRARY_STD_MSL_H
  8. #define BOOST_PREDEF_LIBRARY_STD_MSL_H
  9. #include <boost/predef/library/std/_prefix.h>
  10. #include <boost/predef/version_number.h>
  11. #include <boost/predef/make.h>
  12. /* tag::reference[]
  13. = `BOOST_LIB_STD_MSL`
  14. http://www.freescale.com/[Metrowerks] Standard {CPP} Library.
  15. Version number available as major, minor, and patch.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+__MSL_CPP__+` | {predef_detection}
  20. | `+__MSL__+` | {predef_detection}
  21. | `+__MSL_CPP__+` | V.R.P
  22. | `+__MSL__+` | V.R.P
  23. |===
  24. */ // end::reference[]
  25. #define BOOST_LIB_STD_MSL BOOST_VERSION_NUMBER_NOT_AVAILABLE
  26. #if defined(__MSL_CPP__) || defined(__MSL__)
  27. # undef BOOST_LIB_STD_MSL
  28. # if defined(__MSL_CPP__)
  29. # define BOOST_LIB_STD_MSL BOOST_PREDEF_MAKE_0X_VRPP(__MSL_CPP__)
  30. # else
  31. # define BOOST_LIB_STD_MSL BOOST_PREDEF_MAKE_0X_VRPP(__MSL__)
  32. # endif
  33. #endif
  34. #if BOOST_LIB_STD_MSL
  35. # define BOOST_LIB_STD_MSL_AVAILABLE
  36. #endif
  37. #define BOOST_LIB_STD_MSL_NAME "Metrowerks"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_MSL,BOOST_LIB_STD_MSL_NAME)