Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright John Maddock 2002 - 2003. |
| 2 | // (C) Copyright Jens Maurer 2002 - 2003. |
| 3 | // (C) Copyright Beman Dawes 2002 - 2003. |
| 4 | // Use, modification and distribution are subject to the |
| 5 | // Boost Software License, Version 1.0. (See accompanying file |
| 6 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | |
| 8 | // See http://www.boost.org for most recent version. |
| 9 | |
| 10 | // Comeau STL: |
| 11 | |
| 12 | #if !defined(__LIBCOMO__) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 13 | # include <ndnboost/config/no_tr1/utility.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 14 | # if !defined(__LIBCOMO__) |
| 15 | # error "This is not the Comeau STL!" |
| 16 | # endif |
| 17 | #endif |
| 18 | |
| 19 | // |
| 20 | // std::streambuf<wchar_t> is non-standard |
| 21 | // NOTE: versions of libcomo prior to beta28 have octal version numbering, |
| 22 | // e.g. version 25 is 21 (dec) |
| 23 | #if __LIBCOMO_VERSION__ <= 22 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 24 | # define NDNBOOST_NO_STD_WSTREAMBUF |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 25 | #endif |
| 26 | |
| 27 | #if (__LIBCOMO_VERSION__ <= 31) && defined(_WIN32) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 28 | #define NDNBOOST_NO_SWPRINTF |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 29 | #endif |
| 30 | |
| 31 | #if __LIBCOMO_VERSION__ >= 31 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 32 | # define NDNBOOST_HAS_HASH |
| 33 | # define NDNBOOST_HAS_SLIST |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 34 | #endif |
| 35 | |
| 36 | // C++0x headers not yet implemented |
| 37 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 38 | # define NDNBOOST_NO_CXX11_HDR_ARRAY |
| 39 | # define NDNBOOST_NO_CXX11_HDR_CHRONO |
| 40 | # define NDNBOOST_NO_CXX11_HDR_CODECVT |
| 41 | # define NDNBOOST_NO_CXX11_HDR_CONDITION_VARIABLE |
| 42 | # define NDNBOOST_NO_CXX11_HDR_FORWARD_LIST |
| 43 | # define NDNBOOST_NO_CXX11_HDR_FUTURE |
| 44 | # define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST |
| 45 | # define NDNBOOST_NO_CXX11_HDR_MUTEX |
| 46 | # define NDNBOOST_NO_CXX11_HDR_RANDOM |
| 47 | # define NDNBOOST_NO_CXX11_HDR_RATIO |
| 48 | # define NDNBOOST_NO_CXX11_HDR_REGEX |
| 49 | # define NDNBOOST_NO_CXX11_HDR_SYSTEM_ERROR |
| 50 | # define NDNBOOST_NO_CXX11_HDR_THREAD |
| 51 | # define NDNBOOST_NO_CXX11_HDR_TUPLE |
| 52 | # define NDNBOOST_NO_CXX11_HDR_TYPE_TRAITS |
| 53 | # define NDNBOOST_NO_CXX11_HDR_TYPEINDEX |
| 54 | # define NDNBOOST_NO_CXX11_HDR_UNORDERED_MAP |
| 55 | # define NDNBOOST_NO_CXX11_HDR_UNORDERED_SET |
| 56 | # define NDNBOOST_NO_CXX11_NUMERIC_LIMITS |
| 57 | # define NDNBOOST_NO_CXX11_ALLOCATOR |
| 58 | # define NDNBOOST_NO_CXX11_ATOMIC_SMART_PTR |
| 59 | # define NDNBOOST_NO_CXX11_SMART_PTR |
| 60 | # define NDNBOOST_NO_CXX11_HDR_FUNCTIONAL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 61 | |
| 62 | // |
| 63 | // Intrinsic type_traits support. |
| 64 | // The SGI STL has it's own __type_traits class, which |
| 65 | // has intrinsic compiler support with SGI's compilers. |
| 66 | // Whatever map SGI style type traits to boost equivalents: |
| 67 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 68 | #define NDNBOOST_HAS_SGI_TYPE_TRAITS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 69 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 70 | #define NDNBOOST_STDLIB "Comeau standard library " NDNBOOST_STRINGIZE(__LIBCOMO_VERSION__) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 71 | |
| 72 | |