dinkumware.hpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. // (C) Copyright John Maddock 2001 - 2003.
  2. // (C) Copyright Jens Maurer 2001.
  3. // (C) Copyright Peter Dimov 2001.
  4. // (C) Copyright David Abrahams 2002.
  5. // (C) Copyright Guillaume Melquiond 2003.
  6. // Use, modification and distribution are subject to the
  7. // Boost Software License, Version 1.0. (See accompanying file
  8. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. // See http://www.boost.org for most recent version.
  10. // Dinkumware standard library config:
  11. #if !defined(_YVALS) && !defined(_CPPLIB_VER)
  12. #include <boost/config/no_tr1/utility.hpp>
  13. #if !defined(_YVALS) && !defined(_CPPLIB_VER)
  14. #error This is not the Dinkumware lib!
  15. #endif
  16. #endif
  17. #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
  18. // full dinkumware 3.06 and above
  19. // fully conforming provided the compiler supports it:
  20. # if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
  21. # define BOOST_NO_STDC_NAMESPACE
  22. # endif
  23. # if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC)
  24. # define BOOST_NO_STD_ALLOCATOR
  25. # endif
  26. # define BOOST_HAS_PARTIAL_STD_ALLOCATOR
  27. # if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
  28. // if this lib version is set up for vc6 then there is no std::use_facet:
  29. # define BOOST_NO_STD_USE_FACET
  30. # define BOOST_HAS_TWO_ARG_USE_FACET
  31. // C lib functions aren't in namespace std either:
  32. # define BOOST_NO_STDC_NAMESPACE
  33. // and nor is <exception>
  34. # define BOOST_NO_EXCEPTION_STD_NAMESPACE
  35. # endif
  36. // There's no numeric_limits<long long> support unless _LONGLONG is defined:
  37. # if !defined(_LONGLONG) && (_CPPLIB_VER <= 310)
  38. # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
  39. # endif
  40. // 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
  41. // and no <slist> at all
  42. #else
  43. # define BOOST_MSVC_STD_ITERATOR 1
  44. # define BOOST_NO_STD_ITERATOR
  45. # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
  46. # define BOOST_NO_STD_ALLOCATOR
  47. # define BOOST_NO_STDC_NAMESPACE
  48. # define BOOST_NO_STD_USE_FACET
  49. # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
  50. # define BOOST_HAS_MACRO_USE_FACET
  51. # ifndef _CPPLIB_VER
  52. // Updated Dinkum library defines this, and provides
  53. // its own min and max definitions, as does MTA version.
  54. # ifndef __MTA__
  55. # define BOOST_NO_STD_MIN_MAX
  56. # endif
  57. # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
  58. # endif
  59. #endif
  60. //
  61. // std extension namespace is stdext for vc7.1 and later,
  62. // the same applies to other compilers that sit on top
  63. // of vc7.1 (Intel and Comeau):
  64. //
  65. #if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__)
  66. # define BOOST_STD_EXTENSION_NAMESPACE stdext
  67. #endif
  68. #if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
  69. // if we're using a dinkum lib that's
  70. // been configured for VC6/7 then there is
  71. // no iterator traits (true even for icl)
  72. # define BOOST_NO_STD_ITERATOR_TRAITS
  73. #endif
  74. #if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310)
  75. // Intel C++ chokes over any non-trivial use of <locale>
  76. // this may be an overly restrictive define, but regex fails without it:
  77. # define BOOST_NO_STD_LOCALE
  78. #endif
  79. #include <typeinfo>
  80. #if ( (!_HAS_EXCEPTIONS && !defined(__ghs__)) || (!_HAS_NAMESPACE && defined(__ghs__)) ) && !defined(__TI_COMPILER_VERSION__)
  81. # define BOOST_NO_STD_TYPEINFO
  82. #endif
  83. // C++0x headers implemented in 520 (as shipped by Microsoft)
  84. //
  85. #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520
  86. # define BOOST_NO_CXX11_HDR_ARRAY
  87. # define BOOST_NO_CXX11_HDR_CODECVT
  88. # define BOOST_NO_CXX11_HDR_FORWARD_LIST
  89. # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  90. # define BOOST_NO_CXX11_HDR_RANDOM
  91. # define BOOST_NO_CXX11_HDR_REGEX
  92. # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
  93. # define BOOST_NO_CXX11_HDR_UNORDERED_MAP
  94. # define BOOST_NO_CXX11_HDR_UNORDERED_SET
  95. # define BOOST_NO_CXX11_HDR_TUPLE
  96. # define BOOST_NO_CXX11_HDR_TYPEINDEX
  97. # define BOOST_NO_CXX11_HDR_FUNCTIONAL
  98. # define BOOST_NO_CXX11_NUMERIC_LIMITS
  99. # define BOOST_NO_CXX11_SMART_PTR
  100. #endif
  101. #if ((!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(BOOST_NO_CXX11_HDR_TUPLE)) \
  102. && (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610)
  103. # define BOOST_NO_CXX11_HDR_TUPLE
  104. #endif
  105. // C++0x headers implemented in 540 (as shipped by Microsoft)
  106. //
  107. #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 540
  108. # define BOOST_NO_CXX11_HDR_TYPE_TRAITS
  109. # define BOOST_NO_CXX11_HDR_CHRONO
  110. # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
  111. # define BOOST_NO_CXX11_HDR_FUTURE
  112. # define BOOST_NO_CXX11_HDR_MUTEX
  113. # define BOOST_NO_CXX11_HDR_RATIO
  114. # define BOOST_NO_CXX11_HDR_THREAD
  115. # define BOOST_NO_CXX11_ALLOCATOR
  116. # define BOOST_NO_CXX11_ATOMIC_SMART_PTR
  117. #endif
  118. // C++0x headers implemented in 610 (as shipped by Microsoft)
  119. //
  120. #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
  121. # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  122. #endif
  123. #ifdef _CPPLIB_VER
  124. # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER
  125. #else
  126. # define BOOST_DINKUMWARE_STDLIB 1
  127. #endif
  128. #ifdef _CPPLIB_VER
  129. # define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
  130. #else
  131. # define BOOST_STDLIB "Dinkumware standard library version 1.x"
  132. #endif