epoc32/include/stdapis/boost/config/select_stdlib_config.hpp
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
//  Boost compiler configuration selection header file
williamr@2
     2
williamr@2
     3
//  (C) Copyright John Maddock 2001 - 2003. 
williamr@2
     4
//  (C) Copyright Jens Maurer 2001 - 2002. 
williamr@2
     5
//  Use, modification and distribution are subject to the 
williamr@2
     6
//  Boost Software License, Version 1.0. (See accompanying file 
williamr@2
     7
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
williamr@2
     8
williamr@2
     9
williamr@2
    10
//  See http://www.boost.org for most recent version.
williamr@2
    11
williamr@2
    12
// locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
williamr@2
    13
williamr@2
    14
// we need to include a std lib header here in order to detect which
williamr@2
    15
// library is in use, use <utility> as it's about the smallest
williamr@2
    16
// of the std lib headers - do not rely on this header being included -
williamr@2
    17
// users can short-circuit this header if they know whose std lib
williamr@2
    18
// they are using.
williamr@2
    19
williamr@2
    20
#include <boost/config/no_tr1/utility.hpp>
williamr@2
    21
williamr@2
    22
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
williamr@2
    23
// STLPort library; this _must_ come first, otherwise since
williamr@2
    24
// STLport typically sits on top of some other library, we
williamr@2
    25
// can end up detecting that first rather than STLport:
williamr@2
    26
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
williamr@2
    27
williamr@2
    28
#elif defined(__LIBCOMO__)
williamr@2
    29
// Comeau STL:
williamr@2
    30
#define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
williamr@2
    31
williamr@2
    32
#elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
williamr@2
    33
// Rogue Wave library:
williamr@2
    34
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
williamr@2
    35
williamr@2
    36
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
williamr@2
    37
// GNU libstdc++ 3
williamr@2
    38
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
williamr@2
    39
williamr@2
    40
#elif defined(__STL_CONFIG_H)
williamr@2
    41
// generic SGI STL
williamr@2
    42
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
williamr@2
    43
williamr@2
    44
#elif defined(__MSL_CPP__)
williamr@2
    45
// MSL standard lib:
williamr@2
    46
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
williamr@2
    47
williamr@2
    48
#elif defined(__IBMCPP__)
williamr@2
    49
// take the default VACPP std lib
williamr@2
    50
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
williamr@2
    51
williamr@2
    52
#elif defined(MSIPL_COMPILE_H)
williamr@2
    53
// Modena C++ standard library
williamr@2
    54
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
williamr@2
    55
williamr@2
    56
#elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
williamr@2
    57
// Dinkumware Library (this has to appear after any possible replacement libraries):
williamr@2
    58
#  define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
williamr@2
    59
williamr@2
    60
#elif defined (BOOST_ASSERT_CONFIG)
williamr@2
    61
// this must come last - generate an error if we don't
williamr@2
    62
// recognise the library:
williamr@2
    63
#  error "Unknown standard library - please configure and report the results to boost.org"
williamr@2
    64
williamr@2
    65
#endif
williamr@2
    66
williamr@2
    67
williamr@2
    68