blob: e692e2fced82d2a1eb0ecd3eed66cbb1f6ccf83b [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (C) Copyright John Maddock 2001.
2// (C) Copyright Darin Adler 2001.
3// Use, modification and distribution are subject to the
4// Boost Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7// See http://www.boost.org for most recent version.
8
9// Metrowerks standard library:
10
11#ifndef __MSL_CPP__
Jeff Thompson2277ce52013-08-01 17:34:11 -070012# include <ndnboost/config/no_tr1/utility.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070013# ifndef __MSL_CPP__
14# error This is not the MSL standard library!
15# endif
16#endif
17
18#if __MSL_CPP__ >= 0x6000 // Pro 6
Jeff Thompson3d613fd2013-10-15 15:39:04 -070019# define NDNBOOST_HAS_HASH
20# define NDNBOOST_STD_EXTENSION_NAMESPACE Metrowerks
Jeff Thompsonf7d49942013-08-01 16:47:40 -070021#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022#define NDNBOOST_HAS_SLIST
Jeff Thompsonf7d49942013-08-01 16:47:40 -070023
24#if __MSL_CPP__ < 0x6209
Jeff Thompson3d613fd2013-10-15 15:39:04 -070025# define NDNBOOST_NO_STD_MESSAGES
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026#endif
27
28// check C lib version for <stdint.h>
29#include <cstddef>
30
31#if defined(__MSL__) && (__MSL__ >= 0x5000)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070032# define NDNBOOST_HAS_STDINT_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070033# if !defined(__PALMOS_TRAPS__)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070034# define NDNBOOST_HAS_UNISTD_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070035# endif
36 // boilerplate code:
Jeff Thompson2277ce52013-08-01 17:34:11 -070037# include <ndnboost/config/posix_features.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070038#endif
39
40#if defined(_MWMT) || _MSL_THREADSAFE
Jeff Thompson3d613fd2013-10-15 15:39:04 -070041# define NDNBOOST_HAS_THREADS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070042#endif
43
44#ifdef _MSL_NO_EXPLICIT_FUNC_TEMPLATE_ARG
Jeff Thompson3d613fd2013-10-15 15:39:04 -070045# define NDNBOOST_NO_STD_USE_FACET
46# define NDNBOOST_HAS_TWO_ARG_USE_FACET
Jeff Thompsonf7d49942013-08-01 16:47:40 -070047#endif
48
49// C++0x headers not yet implemented
50//
Jeff Thompson3d613fd2013-10-15 15:39:04 -070051# define NDNBOOST_NO_CXX11_HDR_ARRAY
52# define NDNBOOST_NO_CXX11_HDR_CHRONO
53# define NDNBOOST_NO_CXX11_HDR_CODECVT
54# define NDNBOOST_NO_CXX11_HDR_CONDITION_VARIABLE
55# define NDNBOOST_NO_CXX11_HDR_FORWARD_LIST
56# define NDNBOOST_NO_CXX11_HDR_FUTURE
57# define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST
58# define NDNBOOST_NO_CXX11_HDR_MUTEX
59# define NDNBOOST_NO_CXX11_HDR_RANDOM
60# define NDNBOOST_NO_CXX11_HDR_RATIO
61# define NDNBOOST_NO_CXX11_HDR_REGEX
62# define NDNBOOST_NO_CXX11_HDR_SYSTEM_ERROR
63# define NDNBOOST_NO_CXX11_HDR_THREAD
64# define NDNBOOST_NO_CXX11_HDR_TUPLE
65# define NDNBOOST_NO_CXX11_HDR_TYPE_TRAITS
66# define NDNBOOST_NO_CXX11_HDR_TYPEINDEX
67# define NDNBOOST_NO_CXX11_HDR_UNORDERED_MAP
68# define NDNBOOST_NO_CXX11_HDR_UNORDERED_SET
69# define NDNBOOST_NO_CXX11_NUMERIC_LIMITS
70# define NDNBOOST_NO_CXX11_ALLOCATOR
71# define NDNBOOST_NO_CXX11_ATOMIC_SMART_PTR
72# define NDNBOOST_NO_CXX11_SMART_PTR
73# define NDNBOOST_NO_CXX11_HDR_FUNCTIONAL
Jeff Thompsonf7d49942013-08-01 16:47:40 -070074
Jeff Thompson3d613fd2013-10-15 15:39:04 -070075#define NDNBOOST_STDLIB "Metrowerks Standard Library version " NDNBOOST_STRINGIZE(__MSL_CPP__)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070076
77
78
79
80
81
82
83
84