annotate DEPENDENCIES/generic/include/boost/config/stdlib/dinkumware.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 // (C) Copyright John Maddock 2001 - 2003.
Chris@16 2 // (C) Copyright Jens Maurer 2001.
Chris@16 3 // (C) Copyright Peter Dimov 2001.
Chris@16 4 // (C) Copyright David Abrahams 2002.
Chris@16 5 // (C) Copyright Guillaume Melquiond 2003.
Chris@16 6 // Use, modification and distribution are subject to the
Chris@16 7 // Boost Software License, Version 1.0. (See accompanying file
Chris@16 8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9
Chris@16 10 // See http://www.boost.org for most recent version.
Chris@16 11
Chris@16 12 // Dinkumware standard library config:
Chris@16 13
Chris@16 14 #if !defined(_YVALS) && !defined(_CPPLIB_VER)
Chris@16 15 #include <boost/config/no_tr1/utility.hpp>
Chris@16 16 #if !defined(_YVALS) && !defined(_CPPLIB_VER)
Chris@16 17 #error This is not the Dinkumware lib!
Chris@16 18 #endif
Chris@16 19 #endif
Chris@16 20
Chris@16 21
Chris@16 22 #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
Chris@16 23 // full dinkumware 3.06 and above
Chris@16 24 // fully conforming provided the compiler supports it:
Chris@16 25 # if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
Chris@16 26 # define BOOST_NO_STDC_NAMESPACE
Chris@16 27 # endif
Chris@16 28 # if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC)
Chris@16 29 # define BOOST_NO_STD_ALLOCATOR
Chris@16 30 # endif
Chris@16 31 # define BOOST_HAS_PARTIAL_STD_ALLOCATOR
Chris@16 32 # if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
Chris@16 33 // if this lib version is set up for vc6 then there is no std::use_facet:
Chris@16 34 # define BOOST_NO_STD_USE_FACET
Chris@16 35 # define BOOST_HAS_TWO_ARG_USE_FACET
Chris@16 36 // C lib functions aren't in namespace std either:
Chris@16 37 # define BOOST_NO_STDC_NAMESPACE
Chris@16 38 // and nor is <exception>
Chris@16 39 # define BOOST_NO_EXCEPTION_STD_NAMESPACE
Chris@16 40 # endif
Chris@16 41 // There's no numeric_limits<long long> support unless _LONGLONG is defined:
Chris@16 42 # if !defined(_LONGLONG) && (_CPPLIB_VER <= 310)
Chris@16 43 # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
Chris@16 44 # endif
Chris@16 45 // 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
Chris@16 46 // and no <slist> at all
Chris@16 47 #else
Chris@16 48 # define BOOST_MSVC_STD_ITERATOR 1
Chris@16 49 # define BOOST_NO_STD_ITERATOR
Chris@16 50 # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
Chris@16 51 # define BOOST_NO_STD_ALLOCATOR
Chris@16 52 # define BOOST_NO_STDC_NAMESPACE
Chris@16 53 # define BOOST_NO_STD_USE_FACET
Chris@16 54 # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
Chris@16 55 # define BOOST_HAS_MACRO_USE_FACET
Chris@16 56 # ifndef _CPPLIB_VER
Chris@16 57 // Updated Dinkum library defines this, and provides
Chris@16 58 // its own min and max definitions, as does MTA version.
Chris@16 59 # ifndef __MTA__
Chris@16 60 # define BOOST_NO_STD_MIN_MAX
Chris@16 61 # endif
Chris@16 62 # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
Chris@16 63 # endif
Chris@16 64 #endif
Chris@16 65
Chris@16 66 //
Chris@16 67 // std extension namespace is stdext for vc7.1 and later,
Chris@16 68 // the same applies to other compilers that sit on top
Chris@16 69 // of vc7.1 (Intel and Comeau):
Chris@16 70 //
Chris@16 71 #if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__)
Chris@16 72 # define BOOST_STD_EXTENSION_NAMESPACE stdext
Chris@16 73 #endif
Chris@16 74
Chris@16 75
Chris@16 76 #if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
Chris@16 77 // if we're using a dinkum lib that's
Chris@16 78 // been configured for VC6/7 then there is
Chris@16 79 // no iterator traits (true even for icl)
Chris@16 80 # define BOOST_NO_STD_ITERATOR_TRAITS
Chris@16 81 #endif
Chris@16 82
Chris@16 83 #if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310)
Chris@16 84 // Intel C++ chokes over any non-trivial use of <locale>
Chris@16 85 // this may be an overly restrictive define, but regex fails without it:
Chris@16 86 # define BOOST_NO_STD_LOCALE
Chris@16 87 #endif
Chris@16 88
Chris@101 89 // Fix for VC++ 8.0 on up ( I do not have a previous version to test )
Chris@101 90 // or clang-cl. If exceptions are off you must manually include the
Chris@101 91 // <exception> header before including the <typeinfo> header. Admittedly
Chris@101 92 // trying to use Boost libraries or the standard C++ libraries without
Chris@101 93 // exception support is not suggested but currently clang-cl ( v 3.4 )
Chris@101 94 // does not support exceptions and must be compiled with exceptions off.
Chris@101 95 #if !_HAS_EXCEPTIONS && ((defined(BOOST_MSVC) && BOOST_MSVC >= 1400) || (defined(__clang__) && defined(_MSC_VER)))
Chris@101 96 #include <exception>
Chris@101 97 #endif
Chris@16 98 #include <typeinfo>
Chris@101 99 #if ( (!_HAS_EXCEPTIONS && !defined(__ghs__)) || (!_HAS_NAMESPACE && defined(__ghs__)) ) && !defined(__TI_COMPILER_VERSION__) && !defined(__VISUALDSPVERSION__)
Chris@101 100 # define BOOST_NO_STD_TYPEINFO
Chris@16 101 #endif
Chris@16 102
Chris@16 103 // C++0x headers implemented in 520 (as shipped by Microsoft)
Chris@16 104 //
Chris@16 105 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520
Chris@16 106 # define BOOST_NO_CXX11_HDR_ARRAY
Chris@16 107 # define BOOST_NO_CXX11_HDR_CODECVT
Chris@16 108 # define BOOST_NO_CXX11_HDR_FORWARD_LIST
Chris@16 109 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
Chris@16 110 # define BOOST_NO_CXX11_HDR_RANDOM
Chris@16 111 # define BOOST_NO_CXX11_HDR_REGEX
Chris@16 112 # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
Chris@16 113 # define BOOST_NO_CXX11_HDR_UNORDERED_MAP
Chris@16 114 # define BOOST_NO_CXX11_HDR_UNORDERED_SET
Chris@16 115 # define BOOST_NO_CXX11_HDR_TUPLE
Chris@16 116 # define BOOST_NO_CXX11_HDR_TYPEINDEX
Chris@16 117 # define BOOST_NO_CXX11_HDR_FUNCTIONAL
Chris@16 118 # define BOOST_NO_CXX11_NUMERIC_LIMITS
Chris@16 119 # define BOOST_NO_CXX11_SMART_PTR
Chris@16 120 #endif
Chris@16 121
Chris@16 122 #if ((!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(BOOST_NO_CXX11_HDR_TUPLE)) \
Chris@16 123 && (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610)
Chris@16 124 # define BOOST_NO_CXX11_HDR_TUPLE
Chris@16 125 #endif
Chris@16 126
Chris@16 127 // C++0x headers implemented in 540 (as shipped by Microsoft)
Chris@16 128 //
Chris@16 129 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 540
Chris@16 130 # define BOOST_NO_CXX11_HDR_TYPE_TRAITS
Chris@16 131 # define BOOST_NO_CXX11_HDR_CHRONO
Chris@16 132 # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
Chris@16 133 # define BOOST_NO_CXX11_HDR_FUTURE
Chris@16 134 # define BOOST_NO_CXX11_HDR_MUTEX
Chris@16 135 # define BOOST_NO_CXX11_HDR_RATIO
Chris@16 136 # define BOOST_NO_CXX11_HDR_THREAD
Chris@16 137 # define BOOST_NO_CXX11_ATOMIC_SMART_PTR
Chris@16 138 #endif
Chris@16 139
Chris@16 140 // C++0x headers implemented in 610 (as shipped by Microsoft)
Chris@16 141 //
Chris@16 142 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
Chris@16 143 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
Chris@101 144 # define BOOST_NO_CXX11_HDR_ATOMIC
Chris@101 145 # define BOOST_NO_CXX11_ALLOCATOR
Chris@101 146 // 540 has std::align but it is not a conforming implementation
Chris@101 147 # define BOOST_NO_CXX11_STD_ALIGN
Chris@16 148 #endif
Chris@16 149
Chris@101 150 #if defined(BOOST_INTEL) && (BOOST_INTEL <= 1400)
Chris@101 151 // Intel's compiler can't handle this header yet:
Chris@101 152 # define BOOST_NO_CXX11_HDR_ATOMIC
Chris@101 153 #endif
Chris@101 154
Chris@101 155
Chris@101 156 // 520..610 have std::addressof, but it doesn't support functions
Chris@101 157 //
Chris@101 158 # define BOOST_NO_CXX11_ADDRESSOF
Chris@101 159
Chris@16 160 #ifdef _CPPLIB_VER
Chris@16 161 # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER
Chris@16 162 #else
Chris@16 163 # define BOOST_DINKUMWARE_STDLIB 1
Chris@16 164 #endif
Chris@16 165
Chris@16 166 #ifdef _CPPLIB_VER
Chris@16 167 # define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
Chris@16 168 #else
Chris@16 169 # define BOOST_STDLIB "Dinkumware standard library version 1.x"
Chris@16 170 #endif