imgtools/imglib/boostlibrary/boost/tr1/detail/config.hpp
author lorewang
Wed, 01 Dec 2010 16:05:36 +0800
changeset 715 e0739b8406dd
parent 600 6d08f4a05d93
permissions -rw-r--r--
Specify extenal tool with path
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
//  (C) Copyright John Maddock 2005-7.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
//  Use, modification and distribution are subject to the
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
//  Boost Software License, Version 1.0. (See accompanying file
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     4
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     5
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     6
#ifndef BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     7
#  define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     8
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
#include <cstddef>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
#if defined(__GNUC__) || (!defined(_AIX) && defined(__IBMCPP__)  && (__IBMCPP__ >= 800)) 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
#if !defined(BOOST_HAS_INCLUDE_NEXT)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
#  define BOOST_HAS_INCLUDE_NEXT
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
// Need to find out if we're using GLIBC:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
#ifdef BOOST_TR1_UTILITY_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
// Oops we're in a recursive include path!!
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
// Need to include utility, or some std lib header,
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
// but *not* via <utility> or <boost/config/no_tr1/utility.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
#  ifndef BOOST_TR1_NO_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
#     define BOOST_TR1_NO_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
#     define BOOST_TR1_NO_CONFIG_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
#  if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
#     include_next <utility>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
#  else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
#     include BOOST_TR1_STD_HEADER(utility)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
#  ifdef BOOST_TR1_NO_CONFIG_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
#     undef BOOST_TR1_NO_CONFIG_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
#     undef BOOST_TR1_NO_RECURSION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
#else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
#include <boost/config/no_tr1/utility.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
#if defined(__GLIBCXX__) && !defined(BOOST_TR1_PATH)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
#  define BOOST_TR1_PATH(name) tr1/name
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
#if !defined(BOOST_TR1_PATH)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
#  define BOOST_TR1_PATH(name) name
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
#define BOOST_TR1_HEADER(name) <BOOST_TR1_PATH(name)>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
// Can't use BOOST_WORKAROUND here, it leads to recursive includes:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
#if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600)) || (defined(_MSC_VER) && (_MSC_VER < 1310))
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
#  define BOOST_TR1_USE_OLD_TUPLE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
#ifdef __IBMCPP_TR1__
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
   // turn on support for everything:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
#  define BOOST_HAS_TR1
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
#ifdef __GXX_EXPERIMENTAL_CXX0X__
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
#  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
#  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
#ifdef BOOST_HAS_TR1
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
   // turn on support for everything:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
#  define BOOST_HAS_TR1_ARRAY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
#  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
#  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
#  define BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
#  define BOOST_HAS_TR1_RESULT_OF
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
#  define BOOST_HAS_TR1_MEM_FN
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
#  define BOOST_HAS_TR1_BIND
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
#  define BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72
#  define BOOST_HAS_TR1_HASH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    73
#  define BOOST_HAS_TR1_SHARED_PTR
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    74
#  define BOOST_HAS_TR1_RANDOM
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    75
#  define BOOST_HAS_TR1_REGEX
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    76
#  define BOOST_HAS_TR1_TUPLE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    77
#  define BOOST_HAS_TR1_TYPE_TRAITS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    78
#  define BOOST_HAS_TR1_UTILITY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    79
#  define BOOST_HAS_TR1_UNORDERED_MAP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    80
#  define BOOST_HAS_TR1_UNORDERED_SET
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    81
#  define BOOST_HAS_TR1_CMATH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    82
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    83
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    84
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    85
#if defined(__MWERKS__) && (__MWERKS__ >= 0x3205)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    86
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    87
// Very preliminary MWCW support, may not be right:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    88
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    89
#  define BOOST_HAS_TR1_SHARED_PTR
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    90
#  define BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    91
#  define BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    92
#  define BOOST_HAS_TR1_TUPLE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    93
#  define BOOST_HAS_TR1_RESULT_OF
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    94
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    95
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    96
#ifdef BOOST_HAS_GCC_TR1
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    97
   // turn on support for everything in gcc 4.0.x:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    98
#  define BOOST_HAS_TR1_ARRAY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    99
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   100
//#  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   101
#  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   102
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   103
#  define BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   104
#  define BOOST_HAS_TR1_RESULT_OF
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   105
#  define BOOST_HAS_TR1_MEM_FN
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   106
#  define BOOST_HAS_TR1_BIND
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   107
#  define BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   108
#  define BOOST_HAS_TR1_HASH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   109
#  define BOOST_HAS_TR1_SHARED_PTR
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   110
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   111
#  define BOOST_HAS_TR1_RANDOM
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   112
//#  define BOOST_HAS_TR1_REGEX
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   113
#ifdef _GLIBCXX_USE_C99_MATH_TR1
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   114
#  define BOOST_HAS_TR1_CMATH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   115
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   116
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   117
#  define BOOST_HAS_TR1_TUPLE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   118
#  define BOOST_HAS_TR1_TYPE_TRAITS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   119
#  define BOOST_HAS_TR1_UTILITY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   120
#  define BOOST_HAS_TR1_UNORDERED_MAP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   121
#  define BOOST_HAS_TR1_UNORDERED_SET
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   122
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   123
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   124
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   125
#if defined(_MSC_VER) && (_MSC_VER >= 1500) \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   126
   && defined(_MSC_FULL_VER) && \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   127
   !defined(__SGI_STL_PORT) && \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   128
   !defined(_STLPORT_VERSION) && \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   129
   !defined(_RWSTD_VER_STR) && \
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   130
   !defined(_RWSTD_VER)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   131
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   132
// MSVC-9.0 defines a not-quite TR1 conforming hash
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   133
// function object in <functional>, so we must define
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   134
// this here, in addition the feature pack for VC9
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   135
// provides a more or less full TR1 implementation:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   136
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   137
#if defined(_HAS_TR1) && (_HAS_TR1 + 0)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   138
#  define BOOST_HAS_TR1_ARRAY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   139
#  define BOOST_HAS_TR1_REFERENCE_WRAPPER
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   140
#  define BOOST_HAS_TR1_RESULT_OF
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   141
#  define BOOST_HAS_TR1_MEM_FN
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   142
#  define BOOST_HAS_TR1_BIND
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   143
#  define BOOST_HAS_TR1_FUNCTION
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   144
#  define BOOST_HAS_TR1_HASH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   145
#  define BOOST_HAS_TR1_SHARED_PTR
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   146
#  define BOOST_HAS_TR1_RANDOM
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   147
#  define BOOST_HAS_TR1_REGEX
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   148
#  define BOOST_HAS_TR1_TUPLE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   149
#  define BOOST_HAS_TR1_TYPE_TRAITS
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   150
#  define BOOST_HAS_TR1_UTILITY
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   151
#  define BOOST_HAS_TR1_UNORDERED_MAP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   152
#  define BOOST_HAS_TR1_UNORDERED_SET
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   153
#else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   154
#  define BOOST_HAS_TR1_HASH
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   155
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   156
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   157
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   158
#include <boost/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   159
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   160
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   161
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   162
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   163