stlport.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_STLPORT_H
  8. #define BOOST_PREDEF_LIBRARY_STD_STLPORT_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_STLPORT`
  14. http://sourceforge.net/projects/stlport/[STLport Standard {CPP}] library.
  15. Version number available as major, minor, and patch.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+__SGI_STL_PORT+` | {predef_detection}
  20. | `+_STLPORT_VERSION+` | {predef_detection}
  21. | `+_STLPORT_MAJOR+`, `+_STLPORT_MINOR+`, `+_STLPORT_PATCHLEVEL+` | V.R.P
  22. | `+_STLPORT_VERSION+` | V.R.P
  23. | `+__SGI_STL_PORT+` | V.R.P
  24. |===
  25. */ // end::reference[]
  26. #define BOOST_LIB_STD_STLPORT BOOST_VERSION_NUMBER_NOT_AVAILABLE
  27. #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
  28. # undef BOOST_LIB_STD_STLPORT
  29. # if !defined(BOOST_LIB_STD_STLPORT) && defined(_STLPORT_MAJOR)
  30. # define BOOST_LIB_STD_STLPORT \
  31. BOOST_VERSION_NUMBER(_STLPORT_MAJOR,_STLPORT_MINOR,_STLPORT_PATCHLEVEL)
  32. # endif
  33. # if !defined(BOOST_LIB_STD_STLPORT) && defined(_STLPORT_VERSION)
  34. # define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(_STLPORT_VERSION)
  35. # endif
  36. # if !defined(BOOST_LIB_STD_STLPORT)
  37. # define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(__SGI_STL_PORT)
  38. # endif
  39. #endif
  40. #if BOOST_LIB_STD_STLPORT
  41. # define BOOST_LIB_STD_STLPORT_AVAILABLE
  42. #endif
  43. #define BOOST_LIB_STD_STLPORT_NAME "STLport"
  44. #endif
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_STLPORT,BOOST_LIB_STD_STLPORT_NAME)