comparison DEPENDENCIES/generic/include/boost/chrono/config.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // boost/chrono/config.hpp -------------------------------------------------// 1 // boost/chrono/config.hpp -------------------------------------------------//
2 2
3 // Copyright Beman Dawes 2003, 2006, 2008 3 // Copyright Beman Dawes 2003, 2006, 2008
4 // Copyright 2009-2011 Vicente J. Botet Escriba 4 // Copyright 2009-2011 Vicente J. Botet Escriba
5 // Copyright (c) Microsoft Corporation 2014
5 6
6 // Distributed under the Boost Software License, Version 1.0. (See accompanying 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
7 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 9
9 // See http://www.boost.org/libs/chrono for documentation. 10 // See http://www.boost.org/libs/chrono for documentation.
10 11
11 #ifndef BOOST_CHRONO_CONFIG_HPP 12 #ifndef BOOST_CHRONO_CONFIG_HPP
12 #define BOOST_CHRONO_CONFIG_HPP 13 #define BOOST_CHRONO_CONFIG_HPP
13 14
14 #include <boost/config.hpp> 15 #include <boost/config.hpp>
16 #include <boost/predef.h>
15 17
16 #if !defined BOOST_CHRONO_VERSION 18 #if !defined BOOST_CHRONO_VERSION
17 #define BOOST_CHRONO_VERSION 1 19 #define BOOST_CHRONO_VERSION 1
18 #else 20 #else
19 #if BOOST_CHRONO_VERSION!=1 && BOOST_CHRONO_VERSION!=2 21 #if BOOST_CHRONO_VERSION!=1 && BOOST_CHRONO_VERSION!=2
62 # if defined( BOOST_CHRONO_WINDOWS_API ) 64 # if defined( BOOST_CHRONO_WINDOWS_API )
63 # ifndef UNDER_CE 65 # ifndef UNDER_CE
64 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS 66 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS
65 # endif 67 # endif
66 # define BOOST_CHRONO_HAS_CLOCK_STEADY 68 # define BOOST_CHRONO_HAS_CLOCK_STEADY
67 # define BOOST_CHRONO_HAS_THREAD_CLOCK 69 # if BOOST_PLAT_WINDOWS_DESKTOP
70 # define BOOST_CHRONO_HAS_THREAD_CLOCK
71 # endif
68 # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true 72 # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
69 # endif 73 # endif
70 74
71 # if defined( BOOST_CHRONO_MAC_API ) 75 # if defined( BOOST_CHRONO_MAC_API )
72 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS 76 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS
73 # define BOOST_CHRONO_HAS_CLOCK_STEADY 77 # define BOOST_CHRONO_HAS_CLOCK_STEADY
78 # define BOOST_CHRONO_HAS_THREAD_CLOCK
74 # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true 79 # define BOOST_CHRONO_THREAD_CLOCK_IS_STEADY true
75 # endif 80 # endif
76 81
77 # if defined( BOOST_CHRONO_POSIX_API ) 82 # if defined( BOOST_CHRONO_POSIX_API )
78 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS 83 # define BOOST_CHRONO_HAS_PROCESS_CLOCKS
90 # endif 95 # endif
91 # if defined(sun) || defined(__sun) 96 # if defined(sun) || defined(__sun)
92 # undef BOOST_CHRONO_HAS_THREAD_CLOCK 97 # undef BOOST_CHRONO_HAS_THREAD_CLOCK
93 # undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY 98 # undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY
94 # endif 99 # endif
95 # if defined(__HP_aCC) && defined(__hpux) 100 # if (defined(__HP_aCC) || defined(__GNUC__)) && defined(__hpux)
96 # undef BOOST_CHRONO_HAS_THREAD_CLOCK 101 # undef BOOST_CHRONO_HAS_THREAD_CLOCK
97 # undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY 102 # undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY
98 # endif 103 # endif
99 # if defined(__VXWORKS__) 104 # if defined(__VXWORKS__)
100 # undef BOOST_CHRONO_HAS_PROCESS_CLOCKS 105 # undef BOOST_CHRONO_HAS_PROCESS_CLOCKS
104 #if defined(BOOST_CHRONO_THREAD_DISABLED) && defined(BOOST_CHRONO_HAS_THREAD_CLOCK) 109 #if defined(BOOST_CHRONO_THREAD_DISABLED) && defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
105 #undef BOOST_CHRONO_HAS_THREAD_CLOCK 110 #undef BOOST_CHRONO_HAS_THREAD_CLOCK
106 #undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY 111 #undef BOOST_CHRONO_THREAD_CLOCK_IS_STEADY
107 #endif 112 #endif
108 113
109 //#undef BOOST_CHRONO_HAS_PROCESS_CLOCKS
110
111 // unicode support ------------------------------// 114 // unicode support ------------------------------//
112 115
113 #if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) 116 #if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T)
114 //~ #define BOOST_CHRONO_HAS_UNICODE_SUPPORT 117 //~ #define BOOST_CHRONO_HAS_UNICODE_SUPPORT
115 #else 118 #else
116 #define BOOST_CHRONO_HAS_UNICODE_SUPPORT 1 119 #define BOOST_CHRONO_HAS_UNICODE_SUPPORT 1
117 #endif 120 #endif
118 121
119 #if ! defined BOOST_NOEXCEPT 122 #ifndef BOOST_CHRONO_LIB_CONSTEXPR
120 #if defined(BOOST_NO_CXX11_NOEXCEPT)
121 #define BOOST_NOEXCEPT
122 #else
123 #define BOOST_NOEXCEPT noexcept
124 #endif
125 #endif
126
127 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS ) 123 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS )
128 #define BOOST_CHRONO_LIB_CONSTEXPR 124 #define BOOST_CHRONO_LIB_CONSTEXPR
129 #elif defined(_LIBCPP_VERSION) && !defined(_LIBCPP_CONSTEXPR) 125 #elif defined(_LIBCPP_VERSION) && !defined(_LIBCPP_CONSTEXPR)
130 #define BOOST_CHRONO_LIB_CONSTEXPR 126 #define BOOST_CHRONO_LIB_CONSTEXPR
131 #else 127 #else
132 #define BOOST_CHRONO_LIB_CONSTEXPR BOOST_CONSTEXPR 128 #define BOOST_CHRONO_LIB_CONSTEXPR BOOST_CONSTEXPR
133 #endif 129 #endif
130 #endif
134 131
135 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS ) 132 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS )
136 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW throw() 133 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW throw()
137 #else 134 #else
138 #ifdef BOOST_NO_CXX11_NOEXCEPT 135 #ifdef BOOST_NO_CXX11_NOEXCEPT
139 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW throw() 136 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW throw()
140 #else 137 #else
141 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW noexcept 138 # define BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW noexcept
142 #endif 139 #endif
143 #endif 140 #endif
144
145 141
146 #if defined BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING \ 142 #if defined BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING \
147 && defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING 143 && defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
148 #error "BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING && BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING defined" 144 #error "BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING && BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING defined"
149 #endif 145 #endif